org.acegisecurity.adapters.cas
Class CasPasswordHandler

java.lang.Object
  extended by org.acegisecurity.adapters.cas.CasPasswordHandler
All Implemented Interfaces:
InitializingBean

public final class CasPasswordHandler
extends Object
implements InitializingBean

Provides actual CAS authentication by delegation to an AuthenticationManager.

Do not use this class directly. Instead configure CAS to use the CasPasswordHandlerProxy.

Version:
$Id: CasPasswordHandler.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex

Constructor Summary
CasPasswordHandler()
           
 
Method Summary
 void afterPropertiesSet()
           
 boolean authenticate(ServletRequest servletRequest, String username, String password)
          Called by CasPasswordHandlerProxy for individual authentication requests.
 org.acegisecurity.AuthenticationManager getAuthenticationManager()
           
 void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CasPasswordHandler

public CasPasswordHandler()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

authenticate

public boolean authenticate(ServletRequest servletRequest,
                            String username,
                            String password)
Called by CasPasswordHandlerProxy for individual authentication requests.

Delegates to the configured AuthenticationManager.

Parameters:
servletRequest - as provided by CAS
username - provided to CAS
password - provided to CAS
Returns:
whether authentication was successful or not

getAuthenticationManager

public org.acegisecurity.AuthenticationManager getAuthenticationManager()

setAuthenticationManager

public void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)


Copyright © 2004-2006 Acegi Technology Pty Limited. All Rights Reserved.