Class AuthorizationResult
Represents an OAUTH2.0 authorization result as it was received from an authorization server.
Inheritance
System.Object
AuthorizationResult
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UOL.SDK.Authorization
Assembly: UOL.SDK.dll
Syntax
public class AuthorizationResult
Properties
AccessToken
Gets the access token.
Declaration
public string AccessToken { get; }
Property Value
Type | Description |
---|---|
System.String | The access token. |
Expired
Gets a value indicating whether the access token has expired.
Declaration
public bool Expired { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ExpiresIn
Gets the number of seconds that the access token is valid from the moment it was issued by the authorization server.
Declaration
public long ExpiresIn { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The number of seconds. |
RefreshToken
Gets the refresh token.
Declaration
public string RefreshToken { get; }
Property Value
Type | Description |
---|---|
System.String | The refresh token. |
Retrieved
Gets the date and time when the OAUTH2.0 access token was issued.
Declaration
public DateTime Retrieved { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The issued date and time of the access token. |
TokenType
Gets the token type.
Declaration
public string TokenType { get; }
Property Value
Type | Description |
---|---|
System.String | The Token type. |
Methods
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()