com.jalios.jcmsplugin.devtools
Class DevToolsAuthenticationHandler

java.lang.Object
  extended by com.jalios.jcms.authentication.AuthenticationHandler
      extended by com.jalios.jcmsplugin.devtools.DevToolsAuthenticationHandler
All Implemented Interfaces:
PluginComponent, Comparable

public class DevToolsAuthenticationHandler
extends AuthenticationHandler
implements PluginComponent


Field Summary
 
Fields inherited from class com.jalios.jcms.authentication.AuthenticationHandler
channel, GENERIC_BAD_AUTHENTICATION_MSG, REVISION
 
Fields inherited from interface com.jalios.jcms.plugin.PluginComponent
REVISION
 
Constructor Summary
DevToolsAuthenticationHandler()
           
 
Method Summary
 boolean init(Plugin plugin)
          Initialize the component with the given plugin configuration
 void login(AuthenticationContext ctxt)
          Authenticate a member.
 
Methods inherited from class com.jalios.jcms.authentication.AuthenticationHandler
compareTo, equals, getOrder, loadProperties, logout, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevToolsAuthenticationHandler

public DevToolsAuthenticationHandler()
Method Detail

init

public boolean init(Plugin plugin)
Description copied from interface: PluginComponent
Initialize the component with the given plugin configuration

Specified by:
init in interface PluginComponent
Overrides:
init in class AuthenticationHandler
Parameters:
plugin - the calling plugin
Returns:
true if the conponent has been correctly initialized.
See Also:
PluginComponent.init(Plugin)

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 :
  1. Examine informations required to perform the authentication through the AuthenticationContext object (request, response, login.. etc)
  2. Perform your authentication before chain invokation and set the logged Member AuthenticationContext.setLoggedMember(com.jalios.jcms.Member)
  3. a) Either invoke the next entity in the chain using AuthenticationContext.doChain(),
  4. b) or else skip the chain invokation and block other authentication handler of the chain (do this with caution...)
  5. 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
See Also:
AuthenticationHandler.login(AuthenticationContext)


Copyright © 2001-2007 Jalios SA. All Rights Reserved.