Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class SavedRequestAwareAuthenticationSuccessHandler

  1. Object
  2. SavedRequestAwareAuthenticationSuccessHandler

ImplementsAuthenticationSuccessHandler

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.

Constructors

public SavedRequestAwareAuthenticationSuccessHandler()

Methods

public void setDefaultTargetUrl(String defaultTargetUrl)Where to go when there is nowhere to return to; / unless set.
public void setAlwaysUseDefaultTargetUrl(boolean alwaysUseDefaultTargetUrl)Whether to go to the default even when a page asked for the sign-in.
public void setRequestCache(RequestCache requestCache)
public HttpServer.Response onAuthenticationSuccess(HttpServer.Request request, Authentication authentication)

Inherited methods

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)