public class AuthenticationProcessor extends Object
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationProcessor.Result |
Modifier and Type | Field and Description |
---|---|
protected Runnable |
afterResetListener |
protected AuthenticationSessionModel |
authenticationSession |
static String |
BROKER_SESSION_ID |
static String |
BROKER_USER_ID |
protected boolean |
browserFlow |
protected ClientModel |
client |
protected Map<String,String> |
clientAuthAttributes |
protected ClientConnection |
connection |
static String |
CURRENT_AUTHENTICATION_EXECUTION |
static String |
CURRENT_FLOW_PATH |
protected EventBuilder |
event |
protected String |
flowId |
protected String |
flowPath |
static String |
FORKED_FROM |
static String |
FORWARDED_PASSIVE_LOGIN |
protected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStore |
forwardedErrorMessageStore
This could be an error message forwarded from another authenticator
|
protected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStore |
forwardedSuccessMessageStore
This could be an success message forwarded from another authenticator
|
static String |
LAST_PROCESSED_EXECUTION |
protected static org.jboss.logging.Logger |
logger |
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 |
Constructor and Description |
---|
AuthenticationProcessor() |
public static final String CURRENT_AUTHENTICATION_EXECUTION
public static final String LAST_PROCESSED_EXECUTION
public static final String CURRENT_FLOW_PATH
public static final String FORKED_FROM
public static final String BROKER_SESSION_ID
public static final String BROKER_USER_ID
public static final String FORWARDED_PASSIVE_LOGIN
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
protected UserSessionModel userSession
protected AuthenticationSessionModel authenticationSession
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 Runnable afterResetListener
protected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStore forwardedErrorMessageStore
protected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStore forwardedSuccessMessageStore
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 AuthenticationSessionModel getAuthenticationSession()
public ClientConnection getConnection()
public javax.ws.rs.core.UriInfo getUriInfo()
public KeycloakSession getSession()
public UserSessionModel getUserSession()
public AuthenticationProcessor setRealm(RealmModel realm)
public AuthenticationProcessor setAuthenticationSession(AuthenticationSessionModel authenticationSession)
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 String getFlowPath()
public void setAutheticatedUser(UserModel user)
public void clearAuthenticatedUser()
public URI getRefreshUrl(boolean authSessionIdParam)
public void logFailure()
public boolean isSuccessful(AuthenticationExecutionModel model)
public boolean isEvaluatedTrue(AuthenticationExecutionModel model)
public boolean isEvaluatedFalse(AuthenticationExecutionModel model)
public javax.ws.rs.core.Response handleBrowserExceptionList(AuthenticationFlowException e)
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 void resetFlow()
public static void resetFlow(AuthenticationSessionModel authSession, String flowPath)
public static AuthenticationSessionModel clone(KeycloakSession session, AuthenticationSessionModel authSession)
public javax.ws.rs.core.Response authenticationAction(String execution)
public javax.ws.rs.core.Response authenticateOnly() throws AuthenticationFlowException
AuthenticationFlowException
public ClientSessionContext attachSession()
public static ClientSessionContext attachSession(AuthenticationSessionModel authSession, UserSessionModel userSession, KeycloakSession session, RealmModel realm, ClientConnection connection, EventBuilder event)
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 String nextRequiredAction()
public AuthenticationProcessor.Result createAuthenticatorContext(AuthenticationExecutionModel model, Authenticator authenticator, List<AuthenticationExecutionModel> executions)
public AuthenticationProcessor.Result createClientAuthenticatorContext(AuthenticationExecutionModel model, ClientAuthenticator clientAuthenticator, List<AuthenticationExecutionModel> executions)
Copyright © 2021 JBoss by Red Hat. All rights reserved.