Package io.jans.as.server.auth
Class Authenticator
java.lang.Object
io.jans.as.server.auth.Authenticator
Authenticator component
- Version:
- August 20, 2019
- Author:
- Javier Rojas Blum, Yuriy Movchan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(jakarta.faces.application.FacesMessage.Severity severity, String summary) boolean
Tries to authenticate an user, returnstrue
if the authentication succeedboolean
authenticateBySessionId
(io.jans.as.common.model.session.SessionId sessionId) boolean
authenticateBySessionId
(String sessionIdentifier) boolean
authenticateClient
(jakarta.servlet.http.HttpServletRequest servletRequest) boolean
authenticateClient
(jakarta.servlet.http.HttpServletRequest servletRequest, boolean skipPassword) authenticateImpl
(jakarta.servlet.http.HttpServletRequest servletRequest, boolean interactive, boolean skipPassword, boolean service) boolean
authenticateUser
(jakarta.servlet.http.HttpServletRequest servletRequest) boolean
clientAuthentication
(io.jans.model.security.Credentials credentials, boolean interactive, boolean skipPassword) void
configureSessionClient
(io.jans.as.common.model.registration.Client client) protected void
handleLoginError
(String facesMessageId) protected void
protected void
handleScriptError
(io.jans.as.common.model.session.SessionId sessionId) protected void
handleScriptError
(io.jans.as.common.model.session.SessionId sessionId, String facesMessageId) protected void
boolean
isServiceAuthentication
(boolean service, boolean skipPassword, jakarta.servlet.http.HttpServletRequest servletRequest) prepareAuthenticationForStep
(io.jans.as.common.model.session.SessionId sessionId)
-
Field Details
-
INVALID_SESSION_MESSAGE
- See Also:
-
AUTHENTICATION_ERROR_MESSAGE
- See Also:
-
AUTHENTICATION_SUCCESS_FOR_USER
- See Also:
-
-
Constructor Details
-
Authenticator
public Authenticator()
-
-
Method Details
-
authenticate
public boolean authenticate()Tries to authenticate an user, returnstrue
if the authentication succeed- Returns:
- Returns
true
if the authentication succeed
-
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
-
prepareAuthenticationForStep
-
prepareAuthenticationForStep
-
authenticateBySessionId
-
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
-
getMaskedNumber
-