org.acegisecurity.adapters.cas
Class CasPasswordHandler
java.lang.Object
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,v 1.2 2005/11/17 00:56:28 benalex Exp $
- Author:
- Ben Alex
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CasPasswordHandler
public CasPasswordHandler()
setAuthenticationManager
public void setAuthenticationManager(org.acegisecurity.AuthenticationManager authenticationManager)
getAuthenticationManager
public org.acegisecurity.AuthenticationManager getAuthenticationManager()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
authenticate
public boolean authenticate(javax.servlet.ServletRequest servletRequest,
String username,
String password)
- Called by
CasPasswordHandlerProxy for individual
authentication requests.
Delegates to the configured AuthenticationManager.
- Parameters:
servletRequest - as provided by CASusername - provided to CASpassword - provided to CAS
- Returns:
- whether authentication was successful or not
Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.