Class Authenticator


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

      • INVALID_SESSION_MESSAGE

        public static final java.lang.String INVALID_SESSION_MESSAGE
        See Also:
        Constant Field Values
      • AUTHENTICATION_ERROR_MESSAGE

        public static final java.lang.String AUTHENTICATION_ERROR_MESSAGE
        See Also:
        Constant Field Values
    • 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 java.lang.String authenticateWithOutcome()
      • authenticateClient

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

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

        public boolean authenticateUser​(javax.servlet.http.HttpServletRequest servletRequest)
      • authenticateImpl

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

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

        protected void handleSessionInvalid()
      • handleScriptError

        protected void handleScriptError()
      • handleScriptError

        protected void handleScriptError​(java.lang.String facesMessageId)
      • handlePermissionsError

        protected void handlePermissionsError()
      • handleLoginError

        protected void handleLoginError​(java.lang.String facesMessageId)
      • prepareAuthenticationForStep

        public java.lang.String prepareAuthenticationForStep()
      • prepareAuthenticationForStep

        public java.lang.String prepareAuthenticationForStep​(SessionId sessionId)
      • authenticateBySessionId

        public boolean authenticateBySessionId​(java.lang.String sessionIdString)
      • authenticateBySessionId

        public boolean authenticateBySessionId​(SessionId sessionId)
      • configureSessionClient

        public void configureSessionClient​(Client client)
      • addMessage

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

        public java.lang.String getMaskedNumber()