com.jalios.jcms.authentication.handlers
Class SilentParamsAuthenticationHandler
java.lang.Object
com.jalios.jcms.authentication.AuthenticationHandler
com.jalios.jcms.authentication.handlers.SilentParamsAuthenticationHandler
- All Implemented Interfaces:
- PluginComponent, Comparable<AuthenticationHandler>
public class SilentParamsAuthenticationHandler
- extends AuthenticationHandler
Read the authentification from the "silent" parameter, silentLogin
,
silentPassword
and silentDigest
with remote
portal authentication.
- Since:
- jcms-5.7.0
- Version:
- $Revision: 20966 $
- Author:
- Olivier Jaquemet
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
ORDER_SILENT_PARAM_HANDLER
public static final int ORDER_SILENT_PARAM_HANDLER
- Order used by the SilentParamsAuthenticationHandler
- See Also:
- Constant Field Values
getInstance
public static final SilentParamsAuthenticationHandler getInstance()
login
public void login(AuthenticationContext ctxt)
throws IOException
- Description copied from class:
AuthenticationHandler
- Authenticate a member.
This method is invoked by the authentication chain on each request.
A typical implementation of this method would follow the following pattern :
- Examine informations required to perform the authentication through
the
AuthenticationContext
object (request, response, login.. etc)
- Perform your authentication before chain invokation and set the logged Member
AuthenticationContext.setLoggedMember(com.jalios.jcms.Member)
- a) Either invoke the next entity in the chain using
AuthenticationContext.doChain()
,
- b) or else skip the chain invokation and block other authentication handler of the chain (do this with caution...)
- Perform redirection, set information/warning/error message or any
other process, after chain invokation, using
AuthenticationContext
.
Default implementation is to invoke the next handler in the chain.
- Overrides:
login
in class AuthenticationHandler
- Parameters:
ctxt
- the AuthenticationContext
used for this login
- Throws:
IOException
checkAuthenticationFromSilentParams
public static final Member checkAuthenticationFromSilentParams(javax.servlet.http.HttpServletRequest request)
throws IOException
- Returns the member corresponding to the given "silent" credentials given in the
request (silentLogin, silentPassword, silentDigest).
- Parameters:
request
- the request where to look for silent params
- Returns:
- the authenticated member or null if not found
- Throws:
IOException
- if the underneath login operation with the silentLogin/silentPassword could not be performed
Copyright © 2001-2010 Jalios SA. All Rights Reserved.