public class DefaultAuthenticationManager extends AuthenticationManager
AuthenticationManager.Stateless
conn, 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, webServiceAuthenticate
public DefaultAuthenticationManager()
public DefaultAuthenticationManager(javax.servlet.http.HttpServlet s) throws AuthenticationException
AuthenticationException
protected String doAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AuthenticationException, javax.servlet.ServletException, IOException
AuthenticationManager
doAuthenticate
in class AuthenticationManager
request
- HTTP request object, used for handling parameters and session attributesAuthenticationException
javax.servlet.ServletException
IOException
DefaultAuthenticationManager
protected void doLogout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
AuthenticationManager
doLogout
in class AuthenticationManager
request
- HTTP request objectresponse
- HTTP response objectjavax.servlet.ServletException
IOException
protected 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