Class TwoLeggedToken
Namespace: Autodesk.Authentication.Model
Assembly: Autodesk.Authentication.dll
Represents the payload returned in response to a client credentials grant request.
[DataContract]
public class TwoLeggedToken
Inheritance
Inherited Members
object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()
Constructors
TwoLeggedToken()
Initializes a new instance of the
public TwoLeggedToken()
Properties
AccessToken
The access token.
[DataMember(Name = "access_token", EmitDefaultValue = false)]
public string AccessToken { get; set; }
Property Value
ExpiresAt
Access token expiration time, in Unix seconds.
[DataMember(Name = "expires_at", EmitDefaultValue = false)]
public long? ExpiresAt { get; }
Property Value
long ?
ExpiresIn
Access token expiration time (in seconds).
[DataMember(Name = "expires_in", EmitDefaultValue = false)]
public int? ExpiresIn { get; set; }
Property Value
int ?
TokenType
Will always be Bearer.
[DataMember(Name = "token_type", EmitDefaultValue = false)]
public string TokenType { get; set; }
Property Value
Methods
ToString()
Returns the string presentation of the object.
public override string ToString()
Returns
String presentation of the object.