xtd 0.2.0
Loading...
Searching...
No Matches
network_credential.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "../core_export.hpp"
7#include "../object.hpp"
8#include "../types.hpp"
9#include "../string.hpp"
10#include <vector>
11
13namespace xtd {
15 namespace net {
27 public:
29
32 network_credential() = default;
42
46 auto operator =(network_credential&&) -> network_credential& = default;
47 auto operator =(const network_credential&) -> network_credential& = default;
49
51
56 [[nodiscard]] auto domain() const noexcept -> const xtd::string&;
60 auto domain(const xtd::string& value) noexcept -> network_credential&;
61
64 [[nodiscard]] auto password() const noexcept -> xtd::string;
67 auto password(const xtd::string& value) noexcept -> network_credential&;
68
71 [[nodiscard]] auto secure_password() const noexcept -> const xtd::security::secure_string&;
74 auto secure_password(const xtd::security::secure_string& value) noexcept -> network_credential&;
75
78 [[nodiscard]] auto user_name() const noexcept -> const xtd::string&;
81 auto user_name(const xtd::string& value) noexcept -> network_credential&;
83
84 private:
85 xtd::string user_name_;
86 xtd::security::secure_string password_;
87 xtd::string domain_;
88 };
89 }
90}
auto secure_password() const noexcept -> const xtd::security::secure_string &
Gets the password as a xtd::security::secure_string instance.
network_credential()=default
Initializes a new instance of the xtd::net::network_credential class.
auto domain() const noexcept -> const xtd::string &
Gets the domain or computer name that verifies the credentials.
network_credential(const xtd::string &user_name, const xtd::security::secure_string &password, const xtd::string &domain)
Initializes a new instance of the xtd::net::network_credential class with the specified user name,...
network_credential(const xtd::string &user_name, const xtd::security::secure_string &password)
Initializes a new instance of the xtd::net::network_credential class with the specified user name and...
network_credential(const xtd::string &user_name, const xtd::string &password, const xtd::string &domain)
Initializes a new instance of the xtd::net::network_credential class with the specified user name,...
auto password() const noexcept -> xtd::string
Gets the password for the user name associated with the credentials.
network_credential(const xtd::string &user_name, const xtd::string &password)
Initializes a new instance of the xtd::net::network_credential class with the specified user name and...
auto user_name() const noexcept -> const xtd::string &
Gets the user name associated with the credentials.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Represents text that should be kept confidential, such as by deleting it from computer memory when no...
Definition secure_string.hpp:22
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition cookie_exception.hpp:10
Provides the underlying structure of the security system, including base classes for permissions.
Definition secure_string.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::security::secure_string class.
Contains xtd::string alias.
Contains xtd fundamental types.