egovframework.rfc3.iam.security.authentication.cas
Class RFC3CasAuthenticationEntryPoint

java.lang.Object
  extended by egovframework.rfc3.iam.security.authentication.cas.RFC3CasAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.web.AuthenticationEntryPoint

public class RFC3CasAuthenticationEntryPoint
extends java.lang.Object
implements org.springframework.security.web.AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean


Constructor Summary
RFC3CasAuthenticationEntryPoint()
           
 
Method Summary
 void afterPropertiesSet()
           
 void commence(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authenticationException)
           
 java.lang.String getLoginUrl()
          The enterprise-wide CAS login URL.
 org.springframework.security.cas.ServiceProperties getServiceProperties()
           
 void setEncodeServiceUrlWithSessionId(boolean encodeServiceUrlWithSessionId)
          Deprecated. since 3.0.0 because CAS is currently on 3.3.5.
 void setLoginUrl(java.lang.String loginUrl)
           
 void setServiceProperties(org.springframework.security.cas.ServiceProperties serviceProperties)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFC3CasAuthenticationEntryPoint

public RFC3CasAuthenticationEntryPoint()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

commence

public final void commence(javax.servlet.http.HttpServletRequest servletRequest,
                           javax.servlet.http.HttpServletResponse response,
                           org.springframework.security.core.AuthenticationException authenticationException)
                    throws java.io.IOException,
                           javax.servlet.ServletException
Specified by:
commence in interface org.springframework.security.web.AuthenticationEntryPoint
Throws:
java.io.IOException
javax.servlet.ServletException

getLoginUrl

public final java.lang.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 final org.springframework.security.cas.ServiceProperties getServiceProperties()

setLoginUrl

public final void setLoginUrl(java.lang.String loginUrl)

setServiceProperties

public final void setServiceProperties(org.springframework.security.cas.ServiceProperties serviceProperties)

setEncodeServiceUrlWithSessionId

@Deprecated
public final void setEncodeServiceUrlWithSessionId(boolean encodeServiceUrlWithSessionId)
Deprecated. since 3.0.0 because CAS is currently on 3.3.5.

Sets whether to encode the service url with the session id or not.

Parameters:
encodeServiceUrlWithSessionId - whether to encode the service url with the session id or not.