![]() |
C# Client Library
A C# Client Library for the AnalyzeRe REST API
|
An AccessToken storing Bearer authentication information for requests made to the server, specifically for tokens obtained from Okta. More...
Public Member Functions | |
BearerAuthenticationToken () | |
Construct a new unauthorized BearerAuthenticationToken. | |
BearerAuthenticationToken (string token, DateTime expirationTime) | |
Construct a new BearerAuthenticationToken with a token and expiration. | |
bool | IsExpired () |
Checks if the token is expired. | |
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. | |
DateTime | ExpirationTime [get] |
Expiration time of the token. | |
AccessTokenStatus | status = AccessTokenStatus.Unknown [get, set] |
The AccessToken's current AccessTokenStatus (unauthorized / valid). | |
An AccessToken storing Bearer authentication information for requests made to the server, specifically for tokens obtained from Okta.
Definition at line 9 of file BearerAuthenticationToken.cs.
|
inline |
Construct a new unauthorized BearerAuthenticationToken.
Definition at line 34 of file BearerAuthenticationToken.cs.
|
inline |
Construct a new BearerAuthenticationToken with a token and expiration.
token | The token string. |
expirationTime | The expiration time of the token. |
Definition at line 41 of file BearerAuthenticationToken.cs.
|
inline |
Checks if the token is expired.
Definition at line 51 of file BearerAuthenticationToken.cs.
override string AnalyzeRe.Authentication.BearerAuthenticationToken.ToString | ( | ) |
Returns the representation of this access token that could be placed in an "Authorization" header.
|
getset |
The AccessToken identifier.
Implements AnalyzeRe.Authentication.IAccessToken.
Definition at line 24 of file BearerAuthenticationToken.cs.
|
get |
The Authorization Method included in the Authorization header.
Implements AnalyzeRe.Authentication.IAccessToken.
Definition at line 14 of file BearerAuthenticationToken.cs.
|
get |
Expiration time of the token.
Definition at line 29 of file BearerAuthenticationToken.cs.
|
getset |
The AccessToken's current AccessTokenStatus (unauthorized / valid).
Implements AnalyzeRe.Authentication.IAccessToken.
Definition at line 19 of file BearerAuthenticationToken.cs.