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 Details

    • SavedRequestAwareAuthenticationSuccessHandler

      public SavedRequestAwareAuthenticationSuccessHandler()
  • Method Details

    • setDefaultTargetUrl

      public void setDefaultTargetUrl(String defaultTargetUrl)
      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

      public void setRequestCache(RequestCache requestCache)
    • onAuthenticationSuccess

      public HttpServer.Response onAuthenticationSuccess(HttpServer.Request request, Authentication authentication)
      Specified by:
      onAuthenticationSuccess in interface AuthenticationSuccessHandler