Class CliUsernamePasswordAuthenticator

  • All Implemented Interfaces:
    org.keycloak.authentication.Authenticator, org.keycloak.provider.Provider

    public class CliUsernamePasswordAuthenticator
    extends AbstractUsernameFormAuthenticator
    implements org.keycloak.authentication.Authenticator
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Constructor Detail

      • CliUsernamePasswordAuthenticator

        public CliUsernamePasswordAuthenticator()
    • Method Detail

      • requiresUser

        public boolean requiresUser()
        Specified by:
        requiresUser in interface org.keycloak.authentication.Authenticator
      • authenticate

        public void authenticate​(org.keycloak.authentication.AuthenticationFlowContext context)
        Specified by:
        authenticate in interface org.keycloak.authentication.Authenticator
      • setDuplicateUserChallenge

        protected javax.ws.rs.core.Response setDuplicateUserChallenge​(org.keycloak.authentication.AuthenticationFlowContext context,
                                                                      String eventError,
                                                                      String loginFormError,
                                                                      org.keycloak.authentication.AuthenticationFlowError authenticatorError)
        Overrides:
        setDuplicateUserChallenge in class AbstractUsernameFormAuthenticator
      • action

        public void action​(org.keycloak.authentication.AuthenticationFlowContext context)
        Specified by:
        action in interface org.keycloak.authentication.Authenticator
        Overrides:
        action in class AbstractUsernameFormAuthenticator
      • configuredFor

        public boolean configuredFor​(org.keycloak.models.KeycloakSession session,
                                     org.keycloak.models.RealmModel realm,
                                     org.keycloak.models.UserModel user)
        Specified by:
        configuredFor in interface org.keycloak.authentication.Authenticator
      • setRequiredActions

        public void setRequiredActions​(org.keycloak.models.KeycloakSession session,
                                       org.keycloak.models.RealmModel realm,
                                       org.keycloak.models.UserModel user)
        Specified by:
        setRequiredActions in interface org.keycloak.authentication.Authenticator