Class ConditionalRoleAuthenticator
- java.lang.Object
- 
- org.keycloak.authentication.authenticators.conditional.ConditionalRoleAuthenticator
 
- 
- All Implemented Interfaces:
- Authenticator,- ConditionalAuthenticator,- Provider
 
 public class ConditionalRoleAuthenticator extends Object implements ConditionalAuthenticator 
- 
- 
Field SummaryFields Modifier and Type Field Description static ConditionalRoleAuthenticatorSINGLETON
 - 
Constructor SummaryConstructors Constructor Description ConditionalRoleAuthenticator()
 - 
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)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- 
SINGLETONpublic static final ConditionalRoleAuthenticator SINGLETON 
 
- 
 - 
Method Detail- 
matchConditionpublic boolean matchCondition(AuthenticationFlowContext context) - Specified by:
- matchConditionin interface- ConditionalAuthenticator
 
 - 
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
 
 
- 
 
-