Class ConditionalUserConfiguredAuthenticator
- java.lang.Object
-
- org.keycloak.authentication.authenticators.conditional.ConditionalUserConfiguredAuthenticator
-
- All Implemented Interfaces:
Authenticator
,ConditionalAuthenticator
,Provider
public class ConditionalUserConfiguredAuthenticator extends Object implements ConditionalAuthenticator
-
-
Field Summary
Fields Modifier and Type Field Description static ConditionalUserConfiguredAuthenticator
SINGLETON
-
Constructor Summary
Constructors Constructor Description ConditionalUserConfiguredAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
action(AuthenticationFlowContext context)
Called from a form action invocation.void
close()
boolean
matchCondition(AuthenticationFlowContext context)
boolean
requiresUser()
Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?void
setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
Set actions to configure authenticator-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.authentication.Authenticator
areRequiredActionsEnabled, getRequiredActions
-
Methods inherited from interface org.keycloak.authentication.authenticators.conditional.ConditionalAuthenticator
authenticate, configuredFor
-
-
-
-
Field Detail
-
SINGLETON
public static final ConditionalUserConfiguredAuthenticator SINGLETON
-
-
Method Detail
-
matchCondition
public boolean matchCondition(AuthenticationFlowContext context)
- Specified by:
matchCondition
in interfaceConditionalAuthenticator
-
action
public void action(AuthenticationFlowContext context)
Description copied from interface:Authenticator
Called from a form action invocation.- Specified by:
action
in interfaceAuthenticator
-
requiresUser
public boolean requiresUser()
Description copied from interface:Authenticator
Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?- Specified by:
requiresUser
in interfaceAuthenticator
- Returns:
-
setRequiredActions
public void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
Description copied from interface:Authenticator
Set actions to configure authenticator- Specified by:
setRequiredActions
in interfaceAuthenticator
-
-