org.sakaiproject.component.common.authentication
Class LegacyAuthnComponent

java.lang.Object
  extended byorg.sakaiproject.component.common.authentication.LegacyAuthnComponent
All Implemented Interfaces:
AuthenticationManager

public class LegacyAuthnComponent
extends Object
implements AuthenticationManager

An Authentication component working with the legacy UserDirectoryService.

Author:
Sakai Software Development Team

Constructor Summary
LegacyAuthnComponent()
           
 
Method Summary
 Authentication authenticate(Evidence e)
          Attempt to authenticate a user by the given evidence.
 void destroy()
          Final cleanup.
 void init()
          Final initialization, once all dependencies are set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyAuthnComponent

public LegacyAuthnComponent()
Method Detail

init

public void init()
Final initialization, once all dependencies are set.


destroy

public void destroy()
Final cleanup.


authenticate

public Authentication authenticate(Evidence e)
                            throws AuthenticationException
Description copied from interface: AuthenticationManager
Attempt to authenticate a user by the given evidence. Success produces the authenticated user id. Failure throws an exception.

Specified by:
authenticate in interface AuthenticationManager
Parameters:
e - The collected evidence to authenticate.
Returns:
The authentication information if authenticated.
Throws:
AuthenticationException - if the evidence is not understood or not valid.