org.acegisecurity.ui.cas
Class CasProcessingFilterEntryPoint
java.lang.Object
org.acegisecurity.ui.cas.CasProcessingFilterEntryPoint
- All Implemented Interfaces:
- AuthenticationEntryPoint, InitializingBean, Ordered
public class CasProcessingFilterEntryPoint
- extends Object
- implements AuthenticationEntryPoint, InitializingBean, Ordered
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
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 CasProcessingFilter,
which will validate the CAS login was successful.
- Version:
- $Id: CasProcessingFilterEntryPoint.java 1822 2007-05-17 12:20:16Z vishalpuri $
- Author:
- Ben Alex
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CasProcessingFilterEntryPoint
public CasProcessingFilterEntryPoint()
getOrder
public int getOrder()
- Specified by:
getOrder in interface Ordered
setOrder
public void setOrder(int order)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
commence
public void commence(ServletRequest servletRequest,
ServletResponse servletResponse,
AuthenticationException authenticationException)
throws IOException,
ServletException
- Description copied from interface:
AuthenticationEntryPoint
- Commences an authentication scheme.
SecurityEnforcementFilter will populate the
HttpSession attribute named
AuthenticationProcessingFilter.ACEGI_SECURITY_TARGET_URL_KEY with the requested target URL before
calling this method.
Implementations should modify the headers on the ServletResponse as necessary to
commence the authentication process.
- Specified by:
commence in interface AuthenticationEntryPoint
- Parameters:
servletRequest - that resulted in an AuthenticationExceptionservletResponse - so that the user agent can begin authenticationauthenticationException - that caused the invocation
- Throws:
IOException - DOCUMENT ME!
ServletException - DOCUMENT ME!
getLoginUrl
public String getLoginUrl()
- The enterprise-wide CAS login URL. Usually something like
https://www.mycompany.com/cas/login.
- Returns:
- the enterprise-wide CAS login URL
getServiceProperties
public ServiceProperties getServiceProperties()
setLoginUrl
public void setLoginUrl(String loginUrl)
setServiceProperties
public void setServiceProperties(ServiceProperties serviceProperties)
Copyright © 2004-2007 Interface21, Inc. All Rights Reserved.