public class DefaultAuthenticationManager extends AuthenticationManager
AuthenticationManager.Statelessconn, defaultServletUrl, localAdress, LOGIN_PARAM, PASSWORD_PARAM, STATELESS_REQUEST_PARAMETER, username| Constructor and Description |
|---|
DefaultAuthenticationManager() |
DefaultAuthenticationManager(javax.servlet.http.HttpServlet s) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIfPasswordExpired(String userId,
String language)
Checks the expiration password date from userId, throws
AuthenticationExpirationPasswordException in case that expiration date is reached
|
protected String |
doAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called from the authenticate method makes the necessary processing to check if the
request is authenticated or not.
|
protected void |
doLogout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method called from the logout method after clearing all session attributes.
|
authenticate, bdErrorAjax, checkUserPassword, connectorAuthenticate, connectorAuthenticate, createDBSession, createDBSession, doWebServiceAuthenticate, doWebServiceAuthenticate, getAuthenticationManager, getLoginURL, init, isStatelessRequest, isStatelessService, logout, updateDBSession, webServiceAuthenticate, webServiceAuthenticatepublic DefaultAuthenticationManager()
public DefaultAuthenticationManager(javax.servlet.http.HttpServlet s)
throws AuthenticationException
AuthenticationExceptionprotected String doAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AuthenticationException, javax.servlet.ServletException, IOException
AuthenticationManagerdoAuthenticate in class AuthenticationManagerrequest - HTTP request object, used for handling parameters and session attributesAuthenticationExceptionjavax.servlet.ServletExceptionIOExceptionDefaultAuthenticationManagerprotected void doLogout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
AuthenticationManagerdoLogout in class AuthenticationManagerrequest - HTTP request objectresponse - HTTP response objectjavax.servlet.ServletExceptionIOExceptionprotected void checkIfPasswordExpired(String userId, String language) throws AuthenticationExpirationPasswordException
userId - The userId of the user to check expiration password datelanguage - Default language for the userAuthenticationExpirationPasswordException - AuthenticationExpirationPasswordException is thrown in case that expiration date is
reached