public class AuthenticationProcessor extends Object
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationProcessor.Result |
Modifier and Type | Field and Description |
---|---|
protected boolean |
browserFlow |
protected ClientModel |
client |
protected Map<String,String> |
clientAuthAttributes |
protected ClientSessionModel |
clientSession |
protected ClientConnection |
connection |
static String |
CURRENT_AUTHENTICATION_EXECUTION |
protected EventBuilder |
event |
protected String |
flowId |
protected String |
flowPath |
protected FormMessage |
forwardedErrorMessage
This could be an error message forwarded from another authenticator
|
protected FormMessage |
forwardedSuccessMessage
This could be an success message forwarded from another authenticator
|
protected static ServicesLogger |
logger |
protected boolean |
oneActionWasSuccessful |
protected BruteForceProtector |
protector |
protected RealmModel |
realm |
protected org.jboss.resteasy.spi.HttpRequest |
request |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
protected UserSessionModel |
userSession |
protected boolean |
userSessionCreated |
Constructor and Description |
---|
AuthenticationProcessor() |
public static final String CURRENT_AUTHENTICATION_EXECUTION
protected static final ServicesLogger logger
protected RealmModel realm
protected UserSessionModel userSession
protected ClientSessionModel clientSession
protected ClientConnection connection
protected javax.ws.rs.core.UriInfo uriInfo
protected KeycloakSession session
protected EventBuilder event
protected org.jboss.resteasy.spi.HttpRequest request
protected String flowId
protected String flowPath
protected boolean browserFlow
protected BruteForceProtector protector
protected boolean oneActionWasSuccessful
protected FormMessage forwardedErrorMessage
protected FormMessage forwardedSuccessMessage
protected boolean userSessionCreated
protected ClientModel client
public boolean isBrowserFlow()
public AuthenticationProcessor setBrowserFlow(boolean browserFlow)
public BruteForceProtector getBruteForceProtector()
public RealmModel getRealm()
public ClientModel getClient()
public void setClient(ClientModel client)
public ClientSessionModel getClientSession()
public ClientConnection getConnection()
public javax.ws.rs.core.UriInfo getUriInfo()
public KeycloakSession getSession()
public UserSessionModel getUserSession()
public boolean isUserSessionCreated()
public AuthenticationProcessor setRealm(RealmModel realm)
public AuthenticationProcessor setClientSession(ClientSessionModel clientSession)
public AuthenticationProcessor setConnection(ClientConnection connection)
public AuthenticationProcessor setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
public AuthenticationProcessor setSession(KeycloakSession session)
public AuthenticationProcessor setEventBuilder(EventBuilder eventBuilder)
public AuthenticationProcessor setRequest(org.jboss.resteasy.spi.HttpRequest request)
public AuthenticationProcessor setFlowId(String flowId)
public AuthenticationProcessor setFlowPath(String flowPath)
flowPath
- public AuthenticationProcessor setForwardedErrorMessage(FormMessage forwardedErrorMessage)
public AuthenticationProcessor setForwardedSuccessMessage(FormMessage forwardedSuccessMessage)
public String generateCode()
public EventBuilder newEvent()
public EventBuilder getEvent()
public org.jboss.resteasy.spi.HttpRequest getRequest()
public void setAutheticatedUser(UserModel user)
public void clearAuthenticatedUser()
public void logFailure()
public boolean isSuccessful(AuthenticationExecutionModel model)
public javax.ws.rs.core.Response handleBrowserException(Exception failure)
public javax.ws.rs.core.Response handleClientAuthException(Exception failure)
public AuthenticationFlow createFlowExecution(String flowId, AuthenticationExecutionModel execution)
public javax.ws.rs.core.Response authenticate() throws AuthenticationFlowException
AuthenticationFlowException
public javax.ws.rs.core.Response authenticateClient() throws AuthenticationFlowException
AuthenticationFlowException
public javax.ws.rs.core.Response redirectToFlow()
public static javax.ws.rs.core.Response redirectToRequiredActions(RealmModel realm, ClientSessionModel clientSession, javax.ws.rs.core.UriInfo uriInfo)
public static void resetFlow(ClientSessionModel clientSession)
public static ClientSessionModel clone(KeycloakSession session, ClientSessionModel clientSession)
public javax.ws.rs.core.Response authenticationAction(String execution)
public void checkClientSession()
public javax.ws.rs.core.Response authenticateOnly() throws AuthenticationFlowException
AuthenticationFlowException
public void setActionSuccessful()
public javax.ws.rs.core.Response checkWasSuccessfulBrowserAction()
public void attachSession()
public void evaluateRequiredActionTriggers()
public javax.ws.rs.core.Response finishAuthentication(LoginProtocol protocol)
public void validateUser(UserModel authenticatedUser)
protected javax.ws.rs.core.Response authenticationComplete()
public boolean isActionRequired()
public AuthenticationProcessor.Result createAuthenticatorContext(AuthenticationExecutionModel model, Authenticator authenticator, List<AuthenticationExecutionModel> executions)
public AuthenticationProcessor.Result createClientAuthenticatorContext(AuthenticationExecutionModel model, ClientAuthenticator clientAuthenticator, List<AuthenticationExecutionModel> executions)
Copyright © 2016 JBoss by Red Hat. All rights reserved.