|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.adapters.cas.CasPasswordHandlerProxy
public class CasPasswordHandlerProxy
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)
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.
| Constructor Summary | |
|---|---|
CasPasswordHandlerProxy()
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(ServletRequest request,
String username,
String password)
Called by CAS when authentication is required. |
protected ApplicationContext |
getContext(HttpServletRequest httpRequest)
Allows test cases to override where application context obtained from. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CasPasswordHandlerProxy()
| Method Detail |
|---|
public boolean authenticate(ServletRequest request,
String username,
String password)
Delegates to the CasPasswordHandler.
authenticate in interface edu.yale.its.tp.cas.auth.PasswordHandlerrequest - as provided by CASusername - provided to CASpassword - provided to CAS
IllegalArgumentException - if the application context does not contain a CasPasswordHandler
or the ServletRequest was not of type HttpServletRequestprotected ApplicationContext getContext(HttpServletRequest httpRequest)
httpRequest - which can be used to find the ServletContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||