26 public SecureString
password {
get;
private set; }
47 foreach (
char c
in token_password) {
password.AppendChar(c); }
50 string credentials = String.Format(
"{0}:{1}",
username, token_password);
51 byte[] bytes = Encoding.ASCII.GetBytes(credentials);
An AccessToken storing basic authentication information for requests made to the server.
override string ToString()
Returns the representation of this access token that could be placed in an "Authorization" header.
string username
The username associated with this authentication token.
AccessTokenStatus status
The AccessToken's current AccessTokenStatus (unauthorized / valid).
SecureString password
The password associated with this authentication token.
string AuthorizationMethod
The Authorization Method included in the Authorization header.
string access_token
The AccessToken identifier.
BasicAuthenticationToken(string username, string password)
Instantiate a new BasicAuthenticationToken with supplied username and password parameters supplied.
BasicAuthenticationToken()
Instantiate a new BasicAuthenticationToken.
void GenerateAccessToken(string token_username, string token_password)
Provide basic authentication credentials so the user can log in.
An AccessToken storing authentication information for requests made to the server.
AccessTokenStatus
An AccessToken's status (unauthorized / valid).