xtd 0.2.0
Loading...
Searching...
No Matches
network_credential.h
Go to the documentation of this file.
1
4#pragma once
5#include "../security/secure_string.h"
6#include "../core_export.h"
7#include "../object.h"
8#include "../types.h"
9#include "../ustring.h"
10#include <vector>
11
13namespace xtd {
15 namespace net {
25 public:
27
30 network_credential() = default;
34 network_credential(const xtd::ustring& user_name, const xtd::ustring& password);
36 network_credential(const xtd::ustring& user_name, const xtd::security::secure_string& password, const xtd::ustring& domain);
38 network_credential(const xtd::ustring& user_name, const xtd::ustring& password, const xtd::ustring& domain);
40
44 network_credential& operator =(const network_credential&) = default;
46
48
53 const xtd::ustring& domain() const noexcept;
57 network_credential& domain(const xtd::ustring& value) noexcept;
58
61 xtd::ustring password() const noexcept;
64 network_credential& password(const xtd::ustring& value) noexcept;
65
68 const xtd::security::secure_string& secure_password() const noexcept;
71 network_credential& secure_password(const xtd::security::secure_string& value) noexcept;
72
75 const xtd::ustring& user_name() const noexcept;
78 network_credential& user_name(const xtd::ustring& value) noexcept;
80
81 private:
82 xtd::ustring user_name_;
83 xtd::security::secure_string password_;
84 xtd::ustring domain_;
85 };
86 }
87}
Provides credentials for password-based authentication schemes such as basic, digest,...
Definition network_credential.h:24
network_credential()=default
Initializes a new instance of the xtd::net::network_credential class.
const xtd::ustring & domain() const noexcept
Gets the domain or computer name that verifies the credentials.
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...
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...
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,...
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,...
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text that should be kept confidential, such as by deleting it from computer memory when no...
Definition secure_string.h:20
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define core_export_
Define shared library export.
Definition core_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10