Package org.keycloak.authentication
Class AuthenticationProcessor
- java.lang.Object
- 
- org.keycloak.authentication.AuthenticationProcessor
 
- 
- Direct Known Subclasses:
- ResetCredentialsActionTokenHandler.ResetCredsAuthenticationProcessor
 
 public class AuthenticationProcessor extends Object - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classAuthenticationProcessor.Result
 - 
Field SummaryFields Modifier and Type Field Description protected RunnableafterResetListenerprotected AuthenticationSessionModelauthenticationSessionstatic StringBROKER_SESSION_IDstatic StringBROKER_USER_IDprotected booleanbrowserFlowprotected ClientModelclientprotected Map<String,String>clientAuthAttributesprotected ClientConnectionconnectionstatic StringCURRENT_AUTHENTICATION_EXECUTIONstatic StringCURRENT_FLOW_PATHprotected EventBuildereventprotected StringflowIdprotected StringflowPathstatic StringFORKED_FROMstatic StringFORWARDED_PASSIVE_LOGINprotected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStoreforwardedErrorMessageStoreThis could be an error message forwarded from another authenticatorprotected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStoreforwardedInfoMessageStoreThis could be an success message forwarded from another authenticatorprotected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStoreforwardedSuccessMessageStoreThis could be an success message forwarded from another authenticatorstatic StringLAST_PROCESSED_EXECUTIONprotected static org.jboss.logging.Loggerloggerprotected BruteForceProtectorprotectorprotected RealmModelrealmprotected HttpRequestrequestprotected KeycloakSessionsessionprotected javax.ws.rs.core.UriInfouriInfoprotected UserSessionModeluserSession
 - 
Constructor SummaryConstructors Constructor Description AuthenticationProcessor()
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
CURRENT_AUTHENTICATION_EXECUTIONpublic static final String CURRENT_AUTHENTICATION_EXECUTION - See Also:
- Constant Field Values
 
 - 
LAST_PROCESSED_EXECUTIONpublic static final String LAST_PROCESSED_EXECUTION - See Also:
- Constant Field Values
 
 - 
CURRENT_FLOW_PATHpublic static final String CURRENT_FLOW_PATH - See Also:
- Constant Field Values
 
 - 
FORKED_FROMpublic static final String FORKED_FROM - See Also:
- Constant Field Values
 
 - 
BROKER_SESSION_IDpublic static final String BROKER_SESSION_ID - See Also:
- Constant Field Values
 
 - 
BROKER_USER_IDpublic static final String BROKER_USER_ID - See Also:
- Constant Field Values
 
 - 
FORWARDED_PASSIVE_LOGINpublic static final String FORWARDED_PASSIVE_LOGIN - See Also:
- Constant Field Values
 
 - 
loggerprotected static final org.jboss.logging.Logger logger 
 - 
realmprotected RealmModel realm 
 - 
userSessionprotected UserSessionModel userSession 
 - 
authenticationSessionprotected AuthenticationSessionModel authenticationSession 
 - 
connectionprotected ClientConnection connection 
 - 
uriInfoprotected javax.ws.rs.core.UriInfo uriInfo 
 - 
sessionprotected KeycloakSession session 
 - 
eventprotected EventBuilder event 
 - 
requestprotected HttpRequest request 
 - 
flowIdprotected String flowId 
 - 
flowPathprotected String flowPath 
 - 
browserFlowprotected boolean browserFlow 
 - 
protectorprotected BruteForceProtector protector 
 - 
afterResetListenerprotected Runnable afterResetListener 
 - 
forwardedErrorMessageStoreprotected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStore forwardedErrorMessageStore This could be an error message forwarded from another authenticator
 - 
forwardedSuccessMessageStoreprotected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStore forwardedSuccessMessageStore This could be an success message forwarded from another authenticator
 - 
forwardedInfoMessageStoreprotected org.keycloak.authentication.AuthenticationProcessor.ForwardedFormMessageStore forwardedInfoMessageStore This could be an success message forwarded from another authenticator
 - 
clientprotected ClientModel client 
 
- 
 - 
Method Detail- 
isBrowserFlowpublic boolean isBrowserFlow() 
 - 
setBrowserFlowpublic AuthenticationProcessor setBrowserFlow(boolean browserFlow) 
 - 
getBruteForceProtectorpublic BruteForceProtector getBruteForceProtector() 
 - 
getRealmpublic RealmModel getRealm() 
 - 
getClientpublic ClientModel getClient() 
 - 
setClientpublic void setClient(ClientModel client) 
 - 
getAuthenticationSessionpublic AuthenticationSessionModel getAuthenticationSession() 
 - 
getConnectionpublic ClientConnection getConnection() 
 - 
getUriInfopublic javax.ws.rs.core.UriInfo getUriInfo() 
 - 
getSessionpublic KeycloakSession getSession() 
 - 
getUserSessionpublic UserSessionModel getUserSession() 
 - 
setRealmpublic AuthenticationProcessor setRealm(RealmModel realm) 
 - 
setAuthenticationSessionpublic AuthenticationProcessor setAuthenticationSession(AuthenticationSessionModel authenticationSession) 
 - 
setConnectionpublic AuthenticationProcessor setConnection(ClientConnection connection) 
 - 
setUriInfopublic AuthenticationProcessor setUriInfo(javax.ws.rs.core.UriInfo uriInfo) 
 - 
setSessionpublic AuthenticationProcessor setSession(KeycloakSession session) 
 - 
setEventBuilderpublic AuthenticationProcessor setEventBuilder(EventBuilder eventBuilder) 
 - 
setRequestpublic AuthenticationProcessor setRequest(HttpRequest request) 
 - 
setFlowIdpublic AuthenticationProcessor setFlowId(String flowId) 
 - 
setFlowPathpublic AuthenticationProcessor setFlowPath(String flowPath) This is the path segment to append when generating an action URL.- Parameters:
- flowPath-
 
 - 
setForwardedErrorMessagepublic AuthenticationProcessor setForwardedErrorMessage(FormMessage forwardedErrorMessage) 
 - 
setForwardedSuccessMessagepublic AuthenticationProcessor setForwardedSuccessMessage(FormMessage forwardedSuccessMessage) 
 - 
setForwardedInfoMessagepublic AuthenticationProcessor setForwardedInfoMessage(FormMessage forwardedInfoMessage) 
 - 
generateCodepublic String generateCode() 
 - 
newEventpublic EventBuilder newEvent() 
 - 
getEventpublic EventBuilder getEvent() 
 - 
getRequestpublic HttpRequest getRequest() 
 - 
getFlowPathpublic String getFlowPath() 
 - 
setAutheticatedUserpublic void setAutheticatedUser(UserModel user) 
 - 
clearAuthenticatedUserpublic void clearAuthenticatedUser() 
 - 
getRefreshUrlpublic URI getRefreshUrl(boolean authSessionIdParam) 
 - 
logFailurepublic void logFailure() 
 - 
isSuccessfulpublic boolean isSuccessful(AuthenticationExecutionModel model) 
 - 
handleBrowserExceptionListpublic javax.ws.rs.core.Response handleBrowserExceptionList(AuthenticationFlowException e) 
 - 
handleBrowserExceptionpublic javax.ws.rs.core.Response handleBrowserException(Exception failure) 
 - 
handleClientAuthExceptionpublic javax.ws.rs.core.Response handleClientAuthException(Exception failure) 
 - 
createFlowExecutionpublic AuthenticationFlow createFlowExecution(String flowId, AuthenticationExecutionModel execution) 
 - 
authenticatepublic javax.ws.rs.core.Response authenticate() throws AuthenticationFlowException- Throws:
- AuthenticationFlowException
 
 - 
authenticateClientpublic javax.ws.rs.core.Response authenticateClient() throws AuthenticationFlowException- Throws:
- AuthenticationFlowException
 
 - 
redirectToFlowpublic javax.ws.rs.core.Response redirectToFlow() 
 - 
resetFlowpublic void resetFlow() 
 - 
resetFlowpublic static void resetFlow(AuthenticationSessionModel authSession, String flowPath) 
 - 
clonepublic static AuthenticationSessionModel clone(KeycloakSession session, AuthenticationSessionModel authSession) 
 - 
authenticationActionpublic javax.ws.rs.core.Response authenticationAction(String execution) 
 - 
authenticateOnlypublic javax.ws.rs.core.Response authenticateOnly() throws AuthenticationFlowException- Throws:
- AuthenticationFlowException
 
 - 
attachSessionpublic ClientSessionContext attachSession() 
 - 
attachSessionpublic static ClientSessionContext attachSession(AuthenticationSessionModel authSession, UserSessionModel userSession, KeycloakSession session, RealmModel realm, ClientConnection connection, EventBuilder event) 
 - 
evaluateRequiredActionTriggerspublic void evaluateRequiredActionTriggers() 
 - 
finishAuthenticationpublic javax.ws.rs.core.Response finishAuthentication(LoginProtocol protocol) 
 - 
validateUserpublic void validateUser(UserModel authenticatedUser) 
 - 
authenticationCompleteprotected javax.ws.rs.core.Response authenticationComplete() 
 - 
nextRequiredActionpublic String nextRequiredAction() 
 - 
createAuthenticatorContextpublic AuthenticationProcessor.Result createAuthenticatorContext(AuthenticationExecutionModel model, Authenticator authenticator, List<AuthenticationExecutionModel> executions) 
 - 
createClientAuthenticatorContextpublic AuthenticationProcessor.Result createClientAuthenticatorContext(AuthenticationExecutionModel model, ClientAuthenticator clientAuthenticator, List<AuthenticationExecutionModel> executions) 
 
- 
 
-