Provides the credentials for HTTP authentication (Basic/Digest).
More...
|
| NetworkCredential (string username, string password) |
| Initializes a new instance of the NetworkCredential class with the specified user name and password.
|
|
| NetworkCredential (string username, string password, string domain, params string[] roles) |
| Initializes a new instance of the NetworkCredential class with the specified user name, password, domain, and roles.
|
|
|
string | Domain [get, set] |
| Gets the name of the user domain associated with the credentials.
|
|
string | Password [get, set] |
| Gets the password for the user name associated with the credentials.
|
|
string[] | Roles [get, set] |
| Gets the role names to which the user associated with the credentials belongs.
|
|
string | UserName [get, set] |
| Gets the user name associated with the credentials.
|
|
Provides the credentials for HTTP authentication (Basic/Digest).
◆ NetworkCredential() [1/2]
WebSocketSharp.Net.NetworkCredential.NetworkCredential |
( |
string | username, |
|
|
string | password ) |
|
inline |
Initializes a new instance of the NetworkCredential class with the specified user name and password.
- Parameters
-
username | A string that represents the user name associated with the credentials. |
password | A string that represents the password for the user name associated with the credentials. |
- Exceptions
-
ArgumentException | username is null or empty. |
◆ NetworkCredential() [2/2]
WebSocketSharp.Net.NetworkCredential.NetworkCredential |
( |
string | username, |
|
|
string | password, |
|
|
string | domain, |
|
|
params string[] | roles ) |
|
inline |
Initializes a new instance of the NetworkCredential class with the specified user name, password, domain, and roles.
- Parameters
-
username | A string that represents the user name associated with the credentials. |
password | A string that represents the password for the user name associated with the credentials. |
domain | A string that represents the name of the user domain associated with the credentials. |
roles | An array of string that contains the role names to which the user associated with the credentials belongs if any. |
- Exceptions
-
ArgumentException | username is null or empty. |
◆ Domain
string WebSocketSharp.Net.NetworkCredential.Domain |
|
getset |
Gets the name of the user domain associated with the credentials.
A string that represents the name of the user domain associated with the credentials.
◆ Password
string WebSocketSharp.Net.NetworkCredential.Password |
|
getset |
Gets the password for the user name associated with the credentials.
A string that represents the password for the user name associated with the credentials.
◆ Roles
string [] WebSocketSharp.Net.NetworkCredential.Roles |
|
getset |
Gets the role names to which the user associated with the credentials belongs.
An array of string that contains the role names to which the user associated with the credentials belongs.
◆ UserName
string WebSocketSharp.Net.NetworkCredential.UserName |
|
getset |
Gets the user name associated with the credentials.
A string that represents the user name associated with the credentials.
The documentation for this class was generated from the following file:
- /Users/yiyangshang/egdl2/Assets/eag/Scripts/enablegames/PortalAPI/SocketIO/WebsocketSharp/Net/NetworkCredential.cs