Search Results for

    Show / Hide Table of Contents

    Class RefreshToken

    Represents a refresh token used for JWT authentication token renewal.

    Inheritance
    object
    RefreshToken
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.Core.Domain.Klassen
    Assembly: OEMS.Core.dll
    Syntax
    public class RefreshToken

    Properties

    CreatedDate

    Gets or sets the date and time when the refresh token was created.

    Declaration
    [Required]
    public DateTime CreatedDate { get; set; }
    Property Value
    Type Description
    DateTime

    The timestamp indicating when this token was generated.

    ExpiryDate

    Gets or sets the expiration date and time for the refresh token.

    Declaration
    [Required]
    public DateTime ExpiryDate { get; set; }
    Property Value
    Type Description
    DateTime

    The timestamp after which this token is no longer valid.

    Id

    Gets or sets the unique identifier for the refresh token.

    Declaration
    [Key]
    public Guid Id { get; set; }
    Property Value
    Type Description
    Guid

    A GUID that uniquely identifies this refresh token.

    IsActive

    Gets a value indicating whether the refresh token is currently active and usable.

    Declaration
    public bool IsActive { get; }
    Property Value
    Type Description
    bool

    True if the token is neither revoked nor expired, otherwise false.

    IsExpired

    Gets a value indicating whether the refresh token has expired.

    Declaration
    public bool IsExpired { get; }
    Property Value
    Type Description
    bool

    True if the current UTC time is past the expiry date, otherwise false.

    IsRevoked

    Gets a value indicating whether the refresh token has been revoked.

    Declaration
    public bool IsRevoked { get; }
    Property Value
    Type Description
    bool

    True if the token has been revoked, otherwise false.

    ReplacedByToken

    Gets or sets the token that replaced this refresh token during rotation.

    Declaration
    public string ReplacedByToken { get; set; }
    Property Value
    Type Description
    string

    The new token value that superseded this token, or null if not replaced.

    RevokedDate

    Gets or sets the date and time when the refresh token was revoked, if applicable.

    Declaration
    public DateTime? RevokedDate { get; set; }
    Property Value
    Type Description
    DateTime?

    The timestamp of revocation, or null if the token has not been revoked.

    Token

    Gets or sets the refresh token value.

    Declaration
    [Required]
    public string Token { get; set; }
    Property Value
    Type Description
    string

    The cryptographically secure token string used for authentication renewal.

    User

    Gets or sets the navigation property to the associated user.

    Declaration
    [ForeignKey("UserId")]
    public virtual User User { get; set; }
    Property Value
    Type Description
    User

    The user entity that owns this refresh token.

    UserId

    Gets or sets the identifier of the user associated with this refresh token.

    Declaration
    [Required]
    public Guid UserId { get; set; }
    Property Value
    Type Description
    Guid

    The GUID of the user who owns this refresh token.

    In this article
    Back to top Generated by DocFX