org.outerj.daisy.authentication.impl
Class UserAuthenticatorImpl

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.outerj.daisy.authentication.impl.UserAuthenticatorImpl
All Implemented Interfaces:
org.outerj.daisy.authentication.AuthenticationSchemeRegistrar, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, UserAuthenticator, UserAuthenticatorImplMBean

public class UserAuthenticatorImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements UserAuthenticator, UserAuthenticatorImplMBean, org.outerj.daisy.authentication.AuthenticationSchemeRegistrar, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable

Default, database-based implementation of the UserAuthenticator interface.


Constructor Summary
UserAuthenticatorImpl()
           
 
Method Summary
 org.outerj.daisy.repository.commonimpl.AuthenticatedUser authenticate(org.outerj.daisy.repository.Credentials credentials)
           
 void clearPasswordCaches()
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 org.outerj.daisy.repository.user.AuthenticationSchemeInfos getAuthenticationSchemes()
          Returns the list of available (= registered) authentication schemes.
 void initialize()
           
 void registerAuthenticationScheme(org.outerj.daisy.authentication.AuthenticationScheme scheme)
           
 void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
           
 void setUserManager(org.outerj.daisy.repository.user.UserManager userManager)
           
 void unregisterAuthenticationScheme(org.outerj.daisy.authentication.AuthenticationScheme scheme)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAuthenticatorImpl

public UserAuthenticatorImpl()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception

setUserManager

public void setUserManager(org.outerj.daisy.repository.user.UserManager userManager)
Specified by:
setUserManager in interface UserAuthenticator

authenticate

public org.outerj.daisy.repository.commonimpl.AuthenticatedUser authenticate(org.outerj.daisy.repository.Credentials credentials)
                                                                      throws org.outerj.daisy.repository.RepositoryException
Specified by:
authenticate in interface UserAuthenticator
Throws:
org.outerj.daisy.repository.RepositoryException

getAuthenticationSchemes

public org.outerj.daisy.repository.user.AuthenticationSchemeInfos getAuthenticationSchemes()
Description copied from interface: UserAuthenticator
Returns the list of available (= registered) authentication schemes.

Specified by:
getAuthenticationSchemes in interface UserAuthenticator

registerAuthenticationScheme

public void registerAuthenticationScheme(org.outerj.daisy.authentication.AuthenticationScheme scheme)
Specified by:
registerAuthenticationScheme in interface org.outerj.daisy.authentication.AuthenticationSchemeRegistrar

unregisterAuthenticationScheme

public void unregisterAuthenticationScheme(org.outerj.daisy.authentication.AuthenticationScheme scheme)
Specified by:
unregisterAuthenticationScheme in interface org.outerj.daisy.authentication.AuthenticationSchemeRegistrar

clearPasswordCaches

public void clearPasswordCaches()
Specified by:
clearPasswordCaches in interface UserAuthenticatorImplMBean


Copyright © -2005 . All Rights Reserved.