Class RedirectOneTimeTokenGenerationSuccessHandler
java.lang.Object
org.springframework.security.web.authentication.ott.RedirectOneTimeTokenGenerationSuccessHandler
- All Implemented Interfaces:
OneTimeTokenGenerationSuccessHandler
public final class RedirectOneTimeTokenGenerationSuccessHandler
extends Object
implements OneTimeTokenGenerationSuccessHandler
A
OneTimeTokenGenerationSuccessHandler that performs a redirect to a specific
location- Since:
- 6.4
-
Constructor Summary
ConstructorsConstructorDescriptionRedirectOneTimeTokenGenerationSuccessHandler(String redirectUrl) Constructs an instance of this class that redirects to the specified URL. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.authentication.ott.OneTimeToken oneTimeToken) Handles generated one-time tokens
-
Constructor Details
-
RedirectOneTimeTokenGenerationSuccessHandler
Constructs an instance of this class that redirects to the specified URL.- Parameters:
redirectUrl-
-
-
Method Details
-
handle
public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.authentication.ott.OneTimeToken oneTimeToken) throws IOException Description copied from interface:OneTimeTokenGenerationSuccessHandlerHandles generated one-time tokens- Specified by:
handlein interfaceOneTimeTokenGenerationSuccessHandler- Throws:
IOException
-