Class SavedRequestAwareAuthenticationSuccessHandler
java.lang.Object
com.codename1.backend.security.SavedRequestAwareAuthenticationSuccessHandler
- All Implemented Interfaces:
AuthenticationSuccessHandler
public final class SavedRequestAwareAuthenticationSuccessHandler
extends Object
implements AuthenticationSuccessHandler
After sign-in, sends the user to the page that asked them to sign in, or to
a default when they came to the login page on their own.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononAuthenticationSuccess(HttpServer.Request request, Authentication authentication) voidsetAlwaysUseDefaultTargetUrl(boolean alwaysUseDefaultTargetUrl) Whether to go to the default even when a page asked for the sign-in.voidsetDefaultTargetUrl(String defaultTargetUrl) Where to go when there is nowhere to return to;/unless set.voidsetRequestCache(RequestCache requestCache)
-
Constructor Details
-
SavedRequestAwareAuthenticationSuccessHandler
public SavedRequestAwareAuthenticationSuccessHandler()
-
-
Method Details
-
setDefaultTargetUrl
Where to go when there is nowhere to return to;/unless set. -
setAlwaysUseDefaultTargetUrl
public void setAlwaysUseDefaultTargetUrl(boolean alwaysUseDefaultTargetUrl) Whether to go to the default even when a page asked for the sign-in. -
setRequestCache
-
onAuthenticationSuccess
public HttpServer.Response onAuthenticationSuccess(HttpServer.Request request, Authentication authentication) - Specified by:
onAuthenticationSuccessin interfaceAuthenticationSuccessHandler
-