Class DefaultOneTimeToken
java.lang.Object
org.springframework.security.authentication.ott.DefaultOneTimeToken
- All Implemented Interfaces:
OneTimeToken
A default implementation of
OneTimeToken
- Since:
- 6.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
DefaultOneTimeToken
-
-
Method Details
-
getTokenValue
- Specified by:
getTokenValue
in interfaceOneTimeToken
- Returns:
- the one-time token value, never
null
-
getUsername
- Specified by:
getUsername
in interfaceOneTimeToken
- Returns:
- the username associated with this token, never
null
-
getExpiresAt
- Specified by:
getExpiresAt
in interfaceOneTimeToken
- Returns:
- the expiration time of the token
-