Class Authenticator


  • @RequestScoped
    @Named
    public class Authenticator
    extends Object
    Authenticator component
    Version:
    August 20, 2019
    Author:
    Javier Rojas Blum, Yuriy Movchan
    • Constructor Detail

      • Authenticator

        public Authenticator()
    • Method Detail

      • authenticate

        public boolean authenticate()
        Tries to authenticate an user, returns true if the authentication succeed
        Returns:
        Returns true if the authentication succeed
      • authenticateWithOutcome

        public String authenticateWithOutcome()
      • authenticateClient

        public boolean authenticateClient​(jakarta.servlet.http.HttpServletRequest servletRequest,
                                          boolean skipPassword)
      • authenticateClient

        public boolean authenticateClient​(jakarta.servlet.http.HttpServletRequest servletRequest)
      • authenticateUser

        public boolean authenticateUser​(jakarta.servlet.http.HttpServletRequest servletRequest)
      • isServiceAuthentication

        public boolean isServiceAuthentication​(boolean service,
                                               boolean skipPassword,
                                               jakarta.servlet.http.HttpServletRequest servletRequest)
      • authenticateImpl

        public String authenticateImpl​(jakarta.servlet.http.HttpServletRequest servletRequest,
                                       boolean interactive,
                                       boolean skipPassword,
                                       boolean service)
      • clientAuthentication

        public boolean clientAuthentication​(io.jans.model.security.Credentials credentials,
                                            boolean interactive,
                                            boolean skipPassword)
      • handleSessionInvalid

        protected void handleSessionInvalid()
      • handleScriptError

        protected void handleScriptError​(io.jans.as.common.model.session.SessionId sessionId)
      • handleScriptError

        protected void handleScriptError​(io.jans.as.common.model.session.SessionId sessionId,
                                         String facesMessageId)
      • handlePermissionsError

        protected void handlePermissionsError()
      • handleLoginError

        protected void handleLoginError​(String facesMessageId)
      • prepareAuthenticationForStep

        public String prepareAuthenticationForStep()
      • prepareAuthenticationForStep

        public String prepareAuthenticationForStep​(io.jans.as.common.model.session.SessionId sessionId)
      • authenticateBySessionId

        public boolean authenticateBySessionId​(String sessionIdentifier)
      • authenticateBySessionId

        public boolean authenticateBySessionId​(io.jans.as.common.model.session.SessionId sessionId)
      • configureSessionClient

        public void configureSessionClient​(io.jans.as.common.model.registration.Client client)
      • addMessage

        public void addMessage​(jakarta.faces.application.FacesMessage.Severity severity,
                               String summary)
      • getMaskedNumber

        public String getMaskedNumber()