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 1496 2006-05-23 13:38:33Z benalex $
- Author:
- Ben Alex
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CasPasswordHandler
public CasPasswordHandler()
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 CASusername - provided to CASpassword - 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.