xtd 0.2.0
Loading...
Searching...
No Matches
network_credential.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../security/secure_string.hpp"
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;
36 network_credential(const xtd::string& user_name, const xtd::string& password);
38 network_credential(const xtd::string& user_name, const xtd::security::secure_string& password, const xtd::string& domain);
40 network_credential(const xtd::string& user_name, const xtd::string& password, const xtd::string& domain);
42
46 network_credential& operator =(const network_credential&) = default;
48
50
55 const xtd::string& domain() const noexcept;
59 network_credential& domain(const xtd::string& value) noexcept;
60
63 xtd::string password() const noexcept;
66 network_credential& password(const xtd::string& value) noexcept;
67
70 const xtd::security::secure_string& secure_password() const noexcept;
73 network_credential& secure_password(const xtd::security::secure_string& value) noexcept;
74
77 const xtd::string& user_name() const noexcept;
80 network_credential& user_name(const xtd::string& value) noexcept;
82
83 private:
84 xtd::string user_name_;
85 xtd::security::secure_string password_;
86 xtd::string domain_;
87 };
88 }
89}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Provides credentials for password-based authentication schemes such as basic, digest,...
Definition network_credential.hpp:26
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, 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,...
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...
const xtd::string & domain() const noexcept
Gets the domain or computer name that verifies the credentials.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
Represents text that should be kept confidential, such as by deleting it from computer memory when no...
Definition secure_string.hpp:22
#define core_export_
Define shared library export.
Definition core_export.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10