Interface OneTimeToken
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultOneTimeToken
Represents a one-time use token with an associated username and expiration time.
- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-