public class CallbackHandler extends RequiresAuthenticationHandler
| Modifier and Type | Field and Description | 
|---|---|
protected static org.slf4j.Logger | 
logger  | 
sessionHelper| Constructor and Description | 
|---|
CallbackHandler(Pac4jHelper pac4jHelper,
               SessionHelper sessionHelper)  | 
CallbackHandler(String clientName,
               org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerRequest> delegate,
               Pac4jHelper pac4jHelper,
               SessionHelper sessionHelper)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
authenticationFailure(org.vertx.java.core.http.HttpServerRequest req,
                     String sessionId,
                     org.vertx.java.core.json.JsonObject sessionAttributes)
Default authentication failure strategy; save the original url in session and redirects to the Identity Provider if stateful. 
 | 
protected void | 
authenticationSuccess(AuthHttpServerRequest req,
                     String sessionId,
                     org.vertx.java.core.json.JsonObject sessionAttributes)
Default authentication success strategy; forwards the request to the next handler if the user has a granted access,
 sends a 403 forbidden response otherwise. 
 | 
static String | 
defaultUrl(String url,
          String defaultUrl)
This method returns the default url from a specified url compared with a default url. 
 | 
protected void | 
retrieveUserProfile(org.vertx.java.core.http.HttpServerRequest req,
                   String sessionId,
                   org.vertx.java.core.json.JsonObject sessionAttributes,
                   org.vertx.java.core.Handler<org.vertx.java.core.eventbus.Message<org.vertx.java.core.json.JsonObject>> handler)
Returns the User Profile from the session if stateful or from the credentials if stateless. 
 | 
authenticate, doHandle, getRequireAllRoles, getRequireAnyRole, hasAccess, isAjaxRequest, redirectToIdentityProvider, retrieveOriginalUrl, saveOriginalUrl, saveUrl, saveUserProfile, setRequireAllRoles, setRequireAnyRolehandle, isStateless, saveSessionAttributespublic CallbackHandler(String clientName, org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerRequest> delegate, Pac4jHelper pac4jHelper, SessionHelper sessionHelper)
public CallbackHandler(Pac4jHelper pac4jHelper, SessionHelper sessionHelper)
protected void retrieveUserProfile(org.vertx.java.core.http.HttpServerRequest req,
                                   String sessionId,
                                   org.vertx.java.core.json.JsonObject sessionAttributes,
                                   org.vertx.java.core.Handler<org.vertx.java.core.eventbus.Message<org.vertx.java.core.json.JsonObject>> handler)
RequiresAuthenticationHandlerretrieveUserProfile in class RequiresAuthenticationHandlerreq - the HTTP requestsessionId - the session identifiersessionAttributes - the session attributeshandler - the handlerprotected void authenticationSuccess(AuthHttpServerRequest req, String sessionId, org.vertx.java.core.json.JsonObject sessionAttributes)
RequiresAuthenticationHandlerauthenticationSuccess in class RequiresAuthenticationHandlerreq - the HTTP requestsessionId - the session identifiersessionAttributes - the session attributesprotected void authenticationFailure(org.vertx.java.core.http.HttpServerRequest req,
                                     String sessionId,
                                     org.vertx.java.core.json.JsonObject sessionAttributes)
RequiresAuthenticationHandlerauthenticationFailure in class RequiresAuthenticationHandlerreq - the HTTP requestsessionId - the session identifiersessionAttributes - the session attributesCopyright © 2015. All rights reserved.