Class AbstractUsernameFormAuthenticator

    • Constructor Detail

      • AbstractUsernameFormAuthenticator

        public AbstractUsernameFormAuthenticator()
    • Method Detail

      • action

        public void action​(org.keycloak.authentication.AuthenticationFlowContext context)
      • challenge

        protected javax.ws.rs.core.Response challenge​(org.keycloak.authentication.AuthenticationFlowContext context,
                                                      String error)
      • challenge

        protected javax.ws.rs.core.Response challenge​(org.keycloak.authentication.AuthenticationFlowContext context,
                                                      String error,
                                                      String field)
      • createLoginForm

        protected javax.ws.rs.core.Response createLoginForm​(org.keycloak.forms.login.LoginFormsProvider form)
      • disabledByBruteForceError

        protected String disabledByBruteForceError()
      • disabledByBruteForceFieldError

        protected String disabledByBruteForceFieldError()
      • setDuplicateUserChallenge

        protected javax.ws.rs.core.Response setDuplicateUserChallenge​(org.keycloak.authentication.AuthenticationFlowContext context,
                                                                      String eventError,
                                                                      String loginFormError,
                                                                      org.keycloak.authentication.AuthenticationFlowError authenticatorError)
      • runDefaultDummyHash

        protected void runDefaultDummyHash​(org.keycloak.authentication.AuthenticationFlowContext context)
      • dummyHash

        protected void dummyHash​(org.keycloak.authentication.AuthenticationFlowContext context)
      • testInvalidUser

        public void testInvalidUser​(org.keycloak.authentication.AuthenticationFlowContext context,
                                    org.keycloak.models.UserModel user)
      • enabledUser

        public boolean enabledUser​(org.keycloak.authentication.AuthenticationFlowContext context,
                                   org.keycloak.models.UserModel user)
      • validateUserAndPassword

        public boolean validateUserAndPassword​(org.keycloak.authentication.AuthenticationFlowContext context,
                                               javax.ws.rs.core.MultivaluedMap<String,​String> inputData)
      • validateUser

        public boolean validateUser​(org.keycloak.authentication.AuthenticationFlowContext context,
                                    javax.ws.rs.core.MultivaluedMap<String,​String> inputData)
      • validatePassword

        public boolean validatePassword​(org.keycloak.authentication.AuthenticationFlowContext context,
                                        org.keycloak.models.UserModel user,
                                        javax.ws.rs.core.MultivaluedMap<String,​String> inputData,
                                        boolean clearUser)
      • isDisabledByBruteForce

        protected boolean isDisabledByBruteForce​(org.keycloak.authentication.AuthenticationFlowContext context,
                                                 org.keycloak.models.UserModel user)
      • getDefaultChallengeMessage

        protected String getDefaultChallengeMessage​(org.keycloak.authentication.AuthenticationFlowContext context)
      • isUserAlreadySetBeforeUsernamePasswordAuth

        protected boolean isUserAlreadySetBeforeUsernamePasswordAuth​(org.keycloak.authentication.AuthenticationFlowContext context)