EGDL2 2.1
Loading...
Searching...
No Matches
WebSocketSharp.Net.NetworkCredential Class Reference

Provides the credentials for HTTP authentication (Basic/Digest). More...

Public Member Functions

 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.
 

Properties

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.
 

Detailed Description

Provides the credentials for HTTP authentication (Basic/Digest).

Constructor & Destructor Documentation

◆ 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
usernameA string that represents the user name associated with the credentials.
passwordA string that represents the password for the user name associated with the credentials.
Exceptions
ArgumentExceptionusername 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
usernameA string that represents the user name associated with the credentials.
passwordA string that represents the password for the user name associated with the credentials.
domainA string that represents the name of the user domain associated with the credentials.
rolesAn array of string that contains the role names to which the user associated with the credentials belongs if any.
Exceptions
ArgumentExceptionusername is null or empty.

Property Documentation

◆ 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: