C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.Authentication.BasicAuthenticationToken Class Reference

An AccessToken storing basic authentication information for requests made to the server. More...

Public Member Functions

 BasicAuthenticationToken ()
 Instantiate a new BasicAuthenticationToken.
 
 BasicAuthenticationToken (string username, string password)
 Instantiate a new BasicAuthenticationToken with supplied username and password parameters supplied.
 
void GenerateAccessToken (string token_username, string token_password)
 Provide basic authentication credentials so the user can log in.
 
override string ToString ()
 Returns the representation of this access token that could be placed in an "Authorization" header.
 

Properties

string access_token [get, set]
 The AccessToken identifier.
 
string AuthorizationMethod [get]
 The Authorization Method included in the Authorization header.
 
SecureString password [get]
 The password associated with this authentication token.
 
AccessTokenStatus status = AccessTokenStatus.Unknown [get, set]
 The AccessToken's current AccessTokenStatus (unauthorized / valid).
 
string username [get]
 The username associated with this authentication token.
 

Detailed Description

An AccessToken storing basic authentication information for requests made to the server.

Definition at line 11 of file BasicAuthenticationToken.cs.

Inheritance diagram for AnalyzeRe.Authentication.BasicAuthenticationToken:
AnalyzeRe.Authentication.IAccessToken

Constructor & Destructor Documentation

◆ BasicAuthenticationToken() [1/2]

AnalyzeRe.Authentication.BasicAuthenticationToken.BasicAuthenticationToken ( )
inline

Instantiate a new BasicAuthenticationToken.

Definition at line 29 of file BasicAuthenticationToken.cs.

◆ BasicAuthenticationToken() [2/2]

AnalyzeRe.Authentication.BasicAuthenticationToken.BasicAuthenticationToken ( string  username,
string  password 
)
inline

Instantiate a new BasicAuthenticationToken with supplied username and password parameters supplied.

Parameters
usernameThe username
passwordThe password

Definition at line 35 of file BasicAuthenticationToken.cs.

Member Function Documentation

◆ GenerateAccessToken()

void AnalyzeRe.Authentication.BasicAuthenticationToken.GenerateAccessToken ( string  token_username,
string  token_password 
)
inline

Provide basic authentication credentials so the user can log in.

Parameters
token_usernameThe username
token_passwordThe password

Definition at line 43 of file BasicAuthenticationToken.cs.

◆ ToString()

override string AnalyzeRe.Authentication.BasicAuthenticationToken.ToString ( )

Returns the representation of this access token that could be placed in an "Authorization" header.

Returns
The representation of this access token that could be placed in an "Authorization" header.

Property Documentation

◆ access_token

string AnalyzeRe.Authentication.BasicAuthenticationToken.access_token
getset

The AccessToken identifier.

Implements AnalyzeRe.Authentication.IAccessToken.

Definition at line 20 of file BasicAuthenticationToken.cs.

◆ AuthorizationMethod

string AnalyzeRe.Authentication.BasicAuthenticationToken.AuthorizationMethod
get

The Authorization Method included in the Authorization header.

Implements AnalyzeRe.Authentication.IAccessToken.

Definition at line 14 of file BasicAuthenticationToken.cs.

◆ password

SecureString AnalyzeRe.Authentication.BasicAuthenticationToken.password
get

The password associated with this authentication token.

Definition at line 26 of file BasicAuthenticationToken.cs.

◆ status

AccessTokenStatus AnalyzeRe.Authentication.BasicAuthenticationToken.status = AccessTokenStatus.Unknown
getset

The AccessToken's current AccessTokenStatus (unauthorized / valid).

Implements AnalyzeRe.Authentication.IAccessToken.

Definition at line 17 of file BasicAuthenticationToken.cs.

◆ username

string AnalyzeRe.Authentication.BasicAuthenticationToken.username
get

The username associated with this authentication token.

Definition at line 23 of file BasicAuthenticationToken.cs.


The documentation for this class was generated from the following file: