Class ConditionalLoaAuthenticator
- java.lang.Object
- 
- org.keycloak.authentication.authenticators.conditional.ConditionalLoaAuthenticator
 
- 
- All Implemented Interfaces:
- AuthenticationFlowCallback,- Authenticator,- ConditionalAuthenticator,- Provider
 
 public class ConditionalLoaAuthenticator extends Object implements ConditionalAuthenticator, AuthenticationFlowCallback 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_MAX_AGEstatic StringLEVELstatic StringMAX_AGEstatic StringSTORE_IN_USER_SESSIONDeprecated.
 - 
Constructor SummaryConstructors Constructor Description ConditionalLoaAuthenticator(KeycloakSession session)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction(AuthenticationFlowContext context)Called from a form action invocation.voidclose()booleanmatchCondition(AuthenticationFlowContext context)voidonParentFlowSuccess(AuthenticationFlowContext context)Triggered after the authentication flow is successfully finished.voidonTopFlowSuccess()Triggered after the top authentication flow is successfully finished.booleanrequiresUser()Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?voidsetRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)Set actions to configure authenticator- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.authentication.AuthenticatorareRequiredActionsEnabled, getRequiredActions
 - 
Methods inherited from interface org.keycloak.authentication.authenticators.conditional.ConditionalAuthenticatorauthenticate, configuredFor
 
- 
 
- 
- 
- 
Field Detail- 
LEVELpublic static final String LEVEL - See Also:
- Constant Field Values
 
 - 
MAX_AGEpublic static final String MAX_AGE - See Also:
- Constant Field Values
 
 - 
DEFAULT_MAX_AGEpublic static final int DEFAULT_MAX_AGE - See Also:
- Constant Field Values
 
 - 
STORE_IN_USER_SESSION@Deprecated public static final String STORE_IN_USER_SESSION Deprecated.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ConditionalLoaAuthenticatorpublic ConditionalLoaAuthenticator(KeycloakSession session) 
 
- 
 - 
Method Detail- 
matchConditionpublic boolean matchCondition(AuthenticationFlowContext context) - Specified by:
- matchConditionin interface- ConditionalAuthenticator
 
 - 
onParentFlowSuccesspublic void onParentFlowSuccess(AuthenticationFlowContext context) Description copied from interface:AuthenticationFlowCallbackTriggered after the authentication flow is successfully finished. The target authentication flow is the one where this authenticator is configured. Authenticator should finish successfully in the flow (or being evaluated to true in case of Conditional Authenticator) in order to trigger this callback at the successful end of the flow- Specified by:
- onParentFlowSuccessin interface- AuthenticationFlowCallback
- Parameters:
- context- which encapsulate various useful data
 
 - 
onTopFlowSuccesspublic void onTopFlowSuccess() Description copied from interface:AuthenticationFlowCallbackTriggered after the top authentication flow is successfully finished. It is really suitable for last verification of successful authentication- Specified by:
- onTopFlowSuccessin interface- AuthenticationFlowCallback
 
 - 
actionpublic void action(AuthenticationFlowContext context) Description copied from interface:AuthenticatorCalled from a form action invocation.- Specified by:
- actionin interface- Authenticator
 
 - 
requiresUserpublic boolean requiresUser() Description copied from interface:AuthenticatorDoes this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?- Specified by:
- requiresUserin interface- Authenticator
- Returns:
 
 - 
setRequiredActionspublic void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user) Description copied from interface:AuthenticatorSet actions to configure authenticator- Specified by:
- setRequiredActionsin interface- Authenticator
 
 
- 
 
-