diff --git a/adapters/cas/src/main/java/org/acegisecurity/adapters/cas/CasPasswordHandlerProxy.java b/adapters/cas/src/main/java/org/acegisecurity/adapters/cas/CasPasswordHandlerProxy.java index a3c24a9a9e..5c64ada68b 100644 --- a/adapters/cas/src/main/java/org/acegisecurity/adapters/cas/CasPasswordHandlerProxy.java +++ b/adapters/cas/src/main/java/org/acegisecurity/adapters/cas/CasPasswordHandlerProxy.java @@ -27,6 +27,7 @@ import org.springframework.web.context.support.WebApplicationContextUtils; import java.util.Map; import javax.servlet.ServletRequest; +import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; @@ -39,7 +40,7 @@ import javax.servlet.http.HttpServletRequest; * 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 {@link WebApplicationContextUtils#getWebApplicationContext(ServletContext sc)} + * request, the class will use Spring's {@link WebApplicationContextUtils#getRequiredWebApplicationContext(ServletContext)} * method to obtain an ApplicationContext instance, inside which must be a configured * CasPasswordHandler instance. The CasPasswordHandlerProxy will then delegate * authentication requests to that instance.