Interface OneTimeToken

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultOneTimeToken

public interface OneTimeToken extends Serializable
Represents a one-time use token with an associated username and expiration time.
Since:
6.4
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the expiration time of the token.
    Returns the one-time token value.
    Returns the username associated with this token.
  • Method Details

    • getTokenValue

      String getTokenValue()
      Returns the one-time token value.
      Returns:
      the one-time token value, never null
    • getUsername

      String getUsername()
      Returns the username associated with this token.
      Returns:
      the username associated with this token, never null
    • getExpiresAt

      Instant getExpiresAt()
      Returns the expiration time of the token.
      Returns:
      the expiration time of the token