java.lang.Object
org.acegisecurity.adapters.cas.CasPasswordHandlerProxy
- public class CasPasswordHandlerProxy
- extends java.lang.Object
Enables CAS to use the Acegi Security System for authentication.
This class works along with CasPasswordHandler to enable users to
easily migrate from stand-alone Acegi Security System deployments to
enterprise-wide CAS deployments.
It should be noted that the Acegi Security System will operate as a CAS
client irrespective of the PasswordHandler used on the CAS
server. In other words, this class need not be used on the CAS
server if not desired. It exists solely for the convenience of users
wishing have CAS delegate to an Acegi Security System-based
AuthenticationManager.
This class works requires a properly configured
CasPasswordHandler. On the first authentication request, the
class will use Spring's WebApplicationContextUtils.getWebApplicationContext(ServletContext sc)>WebApplicationContextUtils.getWebApplicationContext(ServletContext sc) 55
method to obtain an ApplicationContext instance, inside which
must be a configured CasPasswordHandler instance. The
CasPasswordHandlerProxy will then delegate authentication
requests to that instance.
To configure CAS to use this class, edit CAS' web.xml and
define the edu.yale.its.tp.cas.authHandler context parameter
with the value
org.acegisecurity.adapters.cas.CasPasswordHandlerProxy.
- Version:
- $Id: CasPasswordHandlerProxy.java,v 1.2 2005/11/17 00:56:28 benalex Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.apache.commons.logging.Log logger
ctx
private org.springframework.context.ApplicationContext ctx
handler
private CasPasswordHandler handler
CasPasswordHandlerProxy
public CasPasswordHandlerProxy()
authenticate
public boolean authenticate(javax.servlet.ServletRequest request,
java.lang.String username,
java.lang.String password)
- Called by CAS when authentication is required.
Delegates to the CasPasswordHandler.
getContext
protected org.springframework.context.ApplicationContext getContext(javax.servlet.http.HttpServletRequest httpRequest)
- Allows test cases to override where application context obtained from.