Class DefaultGenerateOneTimeTokenRequestResolver
java.lang.Object
org.springframework.security.web.authentication.ott.DefaultGenerateOneTimeTokenRequestResolver
- All Implemented Interfaces:
GenerateOneTimeTokenRequestResolver
public final class DefaultGenerateOneTimeTokenRequestResolver
extends Object
implements GenerateOneTimeTokenRequestResolver
Default implementation of
GenerateOneTimeTokenRequestResolver
. Resolves
GenerateOneTimeTokenRequest
from username parameter.- Since:
- 6.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(jakarta.servlet.http.HttpServletRequest request) ResolvesGenerateOneTimeTokenRequest
fromHttpServletRequest
void
setExpiresIn
(Duration expiresIn) Sets one-time token expiration time
-
Constructor Details
-
DefaultGenerateOneTimeTokenRequestResolver
public DefaultGenerateOneTimeTokenRequestResolver()
-
-
Method Details
-
resolve
Description copied from interface:GenerateOneTimeTokenRequestResolver
ResolvesGenerateOneTimeTokenRequest
fromHttpServletRequest
- Specified by:
resolve
in interfaceGenerateOneTimeTokenRequestResolver
- Parameters:
request
-HttpServletRequest
to resolve- Returns:
GenerateOneTimeTokenRequest
-
setExpiresIn
Sets one-time token expiration time- Parameters:
expiresIn
- one-time token expiration time
-