xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <network_credential.h>
Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
Inherits xtd::object.
Public Member Functions | |
network_credential ()=default | |
Initializes a new instance of the xtd::net::network_credential class. | |
network_credential (const xtd::ustring &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::ustring &user_name, const xtd::security::secure_string &password, const xtd::ustring &domain) | |
Initializes a new instance of the xtd::net::network_credential class with the specified user name, password and domain. | |
network_credential (const xtd::ustring &user_name, const xtd::ustring &password) | |
Initializes a new instance of the xtd::net::network_credential class with the specified user name and password. | |
network_credential (const xtd::ustring &user_name, const xtd::ustring &password, const xtd::ustring &domain) | |
Initializes a new instance of the xtd::net::network_credential class with the specified user name, password and domain. | |
const xtd::ustring & | domain () const noexcept |
Gets the domain or computer name that verifies the credentials. | |
network_credential & | domain (const xtd::ustring &value) noexcept |
Sets the domain or computer name that verifies the credentials. | |
xtd::ustring | password () const noexcept |
Gets the password for the user name associated with the credentials. | |
network_credential & | password (const xtd::ustring &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::ustring & | user_name () const noexcept |
Gets the user name associated with the credentials. | |
network_credential & | user_name (const xtd::ustring &value) noexcept |
Sets the user name associated with the credentials. | |
Public Member Functions inherited from xtd::object | |
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 size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
static bool | reference_equals (const object &object_a, const object &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::ustring & | 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::ustring & | user_name, |
const xtd::ustring & | 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::ustring & | user_name, |
const xtd::security::secure_string & | password, | ||
const xtd::ustring & | 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::ustring & | user_name, |
const xtd::ustring & | password, | ||
const xtd::ustring & | 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. |