org.nakedobjects.runtime.authentication.standard
Class AuthenticatorAbstract

java.lang.Object
  extended by org.nakedobjects.runtime.authentication.standard.AuthenticatorAbstract
All Implemented Interfaces:
ApplicationScopedComponent, Component, Authenticator
Direct Known Subclasses:
AuthenticatorNoop, ExplorationAuthenticator, LdapAuthenticator, LogonFixtureAuthenticator, PasswordRequestAuthenticatorAbstract, SingleUserAuthenticator

public abstract class AuthenticatorAbstract
extends java.lang.Object
implements Authenticator


Constructor Summary
AuthenticatorAbstract(NakedObjectConfiguration configuration)
           
 
Method Summary
 AuthenticationSession authenticate(AuthenticationRequest request, java.lang.String code)
          Default implementation returns a SimpleSession; can be overridden if required.
 NakedObjectConfiguration getConfiguration()
           
protected  DeploymentType getDeploymentType()
          Helper method for convenience of implementations that depend on the DeploymentType.
 void init()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.runtime.authentication.standard.Authenticator
canAuthenticate, isValid
 

Constructor Detail

AuthenticatorAbstract

public AuthenticatorAbstract(NakedObjectConfiguration configuration)
Method Detail

init

public void init()
Specified by:
init in interface ApplicationScopedComponent

shutdown

public void shutdown()
Specified by:
shutdown in interface ApplicationScopedComponent

authenticate

public AuthenticationSession authenticate(AuthenticationRequest request,
                                          java.lang.String code)
Default implementation returns a SimpleSession; can be overridden if required.

Specified by:
authenticate in interface Authenticator
code - - a hint; is guaranteed to be unique, but the authenticator decides whether to use it or not.
Returns:

getDeploymentType

protected DeploymentType getDeploymentType()
Helper method for convenience of implementations that depend on the DeploymentType.


getConfiguration

public NakedObjectConfiguration getConfiguration()


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.