Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class SavedRequestAwareAuthenticationSuccessHandler
- Object
- 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
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)