Package org.gluu.oxauth.auth
Class Authenticator
- java.lang.Object
-
- org.gluu.oxauth.auth.Authenticator
-
@RequestScoped @Named public class Authenticator extends java.lang.ObjectAuthenticator component- Version:
- August 20, 2019
- Author:
- Javier Rojas Blum, Yuriy Movchan
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTHENTICATION_ERROR_MESSAGEstatic java.lang.StringINVALID_SESSION_MESSAGE
-
Constructor Summary
Constructors Constructor Description Authenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(javax.faces.application.FacesMessage.Severity severity, java.lang.String summary)booleanauthenticate()Tries to authenticate an user, returnstrueif the authentication succeedbooleanauthenticateBySessionId(java.lang.String sessionIdString)booleanauthenticateBySessionId(SessionId sessionId)booleanauthenticateClient(javax.servlet.http.HttpServletRequest servletRequest)booleanauthenticateClient(javax.servlet.http.HttpServletRequest servletRequest, boolean skipPassword)java.lang.StringauthenticateImpl(javax.servlet.http.HttpServletRequest servletRequest, boolean interactive, boolean skipPassword, boolean service)booleanauthenticateUser(javax.servlet.http.HttpServletRequest servletRequest)java.lang.StringauthenticateWithOutcome()booleanclientAuthentication(org.gluu.model.security.Credentials credentials, boolean interactive, boolean skipPassword)voidconfigureSessionClient(Client client)java.lang.StringgetMaskedNumber()protected voidhandleLoginError(java.lang.String facesMessageId)protected voidhandlePermissionsError()protected voidhandleScriptError()protected voidhandleScriptError(java.lang.String facesMessageId)protected voidhandleSessionInvalid()java.lang.StringprepareAuthenticationForStep()java.lang.StringprepareAuthenticationForStep(SessionId sessionId)
-
-
-
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
-
-
Method Detail
-
authenticate
public boolean authenticate()
Tries to authenticate an user, returnstrueif the authentication succeed- Returns:
- Returns
trueif 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()
-
-