Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
Public Constructors | |
| network_credential ()=default | |
| Initializes a new instance of the xtd::net::network_credential class. | |
| 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 password. | |
| 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 password. | |
| 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, password and domain. | |
| 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, password and domain. | |
Public Properties | |
| const xtd::string & | domain () const noexcept |
| Gets the domain or computer name that verifies the credentials. | |
| network_credential & | domain (const xtd::string &value) noexcept |
| Sets the domain or computer name that verifies the credentials. | |
| xtd::string | password () const noexcept |
| Gets the password for the user name associated with the credentials. | |
| network_credential & | password (const xtd::string &value) noexcept |
| Sets the password for the user name associated with the credentials. | |
| const xtd::security::secure_string & | secure_password () const noexcept |
| Gets the password as a xtd::security::secure_string instance. | |
| network_credential & | secure_password (const xtd::security::secure_string &value) noexcept |
| Sets the password as a xtd::security::secure_string instance. | |
| const xtd::string & | user_name () const noexcept |
| Gets the user name associated with the credentials. | |
| network_credential & | user_name (const xtd::string &value) noexcept |
| Sets the user name associated with the credentials. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. | |
| virtual xtd::size | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. | |
| template<class object_t> | |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object. | |
| virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object. | |
| template<class object_a_t, class object_b_t> | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| template<class object_a_t, class object_b_t> | |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the xtd::net::network_credential class.
| xtd::net::network_credential::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 password.
| xtd::net::network_credential::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 password.
| xtd::net::network_credential::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, password and domain.
| xtd::net::network_credential::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, password and domain.
|
noexcept |
Gets the domain or computer name that verifies the credentials.
|
noexcept |
Sets the domain or computer name that verifies the credentials.
| value | The name of the domain associated with the credentials. |
|
noexcept |
Gets the password for the user name associated with the credentials.
|
noexcept |
Sets the password for the user name associated with the credentials.
| value | The password associated with the credentials. If this xtd::net::network_credential instance was initialized with the password parameter set to empty (""), then the xtd::net::network_credential::password property will return an empty string. |
|
noexcept |
Gets the password as a xtd::security::secure_string instance.
|
noexcept |
Sets the password as a xtd::security::secure_string instance.
| value | The password for the user name associated with the credentials. |
|
noexcept |
Gets the user name associated with the credentials.
|
noexcept |
Sets the user name associated with the credentials.
| value | The user name associated with the credentials. |