Class RefreshToken
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The refresh token class.
public class RefreshToken : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
RefreshToken
- Implements
- Inherited Members
Constructors
RefreshToken(Id?, string?, User?, DateTime?, bool?, SessionInfo?)
Initializes a new instance of the RefreshToken class.
public RefreshToken(Id? id, string? token, User? user, DateTime? expiryDateTime, bool? isUsed, SessionInfo? session)
Parameters
id
IdThe identifier.
token
stringThe refresh token.
user
UserThe owner of the Token.
expiryDateTime
DateTime?The expiry date time of the session.
isUsed
bool?If the Token has been used.
session
SessionInfoThe paired session id.
RefreshToken(RefreshToken)
Initializes a new instance of the RefreshToken class.
public RefreshToken(RefreshToken refreshToken)
Parameters
refreshToken
RefreshTokenThe refresh token.
Properties
ExpiryDateTime
Gets or sets the expiry date time.
public DateTime? ExpiryDateTime { get; set; }
Property Value
- DateTime?
The expiry date time.
IsUsed
Gets or sets a value indicating whether the refresh token has been used.
public bool? IsUsed { get; set; }
Property Value
- bool?
The is used value.
Session
Gets or sets the session.
public SessionInfo? Session { get; set; }
Property Value
- SessionInfo
The session.
Token
Gets or sets the refresh token.
public string? Token { get; set; }
Property Value
- string
The refresh token.
User
Gets or sets the user.
public User? User { get; set; }
Property Value
- User
The user.
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.