Class DefaultOneTimeToken
java.lang.Object
org.springframework.security.authentication.ott.DefaultOneTimeToken
- All Implemented Interfaces:
Serializable,OneTimeToken
A default implementation of
OneTimeToken.- Since:
- 6.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the expiration time of the token.Returns the one-time token value.Returns the username associated with this token.
-
Constructor Details
-
DefaultOneTimeToken
-
-
Method Details
-
getTokenValue
Description copied from interface:OneTimeTokenReturns the one-time token value.- Specified by:
getTokenValuein interfaceOneTimeToken- Returns:
- the one-time token value, never
null
-
getUsername
Description copied from interface:OneTimeTokenReturns the username associated with this token.- Specified by:
getUsernamein interfaceOneTimeToken- Returns:
- the username associated with this token, never
null
-
getExpiresAt
Description copied from interface:OneTimeTokenReturns the expiration time of the token.- Specified by:
getExpiresAtin interfaceOneTimeToken- Returns:
- the expiration time of the token
-