From 373f7b648bf544039bca0adda01f905d5b87b714 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Fri, 30 May 2008 17:49:03 +0000 Subject: [PATCH] Corrected outdated filter name in Javadoc --- .../ui/cas/CasProcessingFilterEntryPoint.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cas/src/main/java/org/springframework/security/ui/cas/CasProcessingFilterEntryPoint.java b/cas/src/main/java/org/springframework/security/ui/cas/CasProcessingFilterEntryPoint.java index acc75a87a6..52a2857c07 100644 --- a/cas/src/main/java/org/springframework/security/ui/cas/CasProcessingFilterEntryPoint.java +++ b/cas/src/main/java/org/springframework/security/ui/cas/CasProcessingFilterEntryPoint.java @@ -30,12 +30,14 @@ import org.springframework.util.Assert; /** - * Used by the SecurityEnforcementFilter to commence authentication via the JA-SIG Central - * Authentication Service (CAS).

The user's browser will be redirected to the JA-SIG CAS enterprise-wide login - * page. This page is specified by the loginUrl property. Once login is complete, the CAS login page will + * Used by the ExceptionTranslationFilter to commence authentication via the JA-SIG Central + * Authentication Service (CAS). + *

+ * The user's browser will be redirected to the JA-SIG CAS enterprise-wide login page. + * This page is specified by the loginUrl property. Once login is complete, the CAS login page will * redirect to the page indicated by the service property. The service is a HTTP URL * belonging to the current application. The service URL is monitored by the {@link CasProcessingFilter}, - * which will validate the CAS login was successful.

+ * which will validate the CAS login was successful. * * @author Ben Alex * @author Scott Battaglia @@ -65,8 +67,8 @@ public class CasProcessingFilterEntryPoint implements AuthenticationEntryPoint, } public void commence(final ServletRequest servletRequest, final ServletResponse servletResponse, - final AuthenticationException authenticationException) - throws IOException, ServletException { + final AuthenticationException authenticationException) throws IOException, ServletException { + final HttpServletResponse response = (HttpServletResponse) servletResponse; final String urlEncodedService = CommonUtils.constructServiceUrl(null, response, this.serviceProperties.getService(), null, "ticket", this.encodeServiceUrlWithSessionId); final String redirectUrl = CommonUtils.constructRedirectUrl(this.loginUrl, "service", urlEncodedService, this.serviceProperties.isSendRenew(), false);