java.lang.Object | |
↳ | org.springframework.security.cas.web.CasAuthenticationEntryPoint |
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 CasAuthenticationFilter
,
which will validate the CAS login was successful.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Commences an authentication scheme.
| |||||||||||
The enterprise-wide CAS login URL.
| |||||||||||
This method is deprecated.
since 3.0.0 because CAS is currently on 3.3.5.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs the Url for Redirection to the CAS server.
| |||||||||||
Constructs a new Service Url.
| |||||||||||
This method is deprecated.
since 3.0.0 because CAS is currently on 3.3.5.
| |||||||||||
Template method for you to do your own pre-processing before the redirect occurs.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.security.web.AuthenticationEntryPoint
|
Commences an authentication scheme.
ExceptionTranslationFilter
will populate the HttpSession
attribute named
AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_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.
servletRequest | that resulted in an AuthenticationException |
---|---|
response | so that the user agent can begin authentication |
authenticationException | that caused the invocation |
IOException | |
---|---|
ServletException |
The enterprise-wide CAS login URL. Usually something like
https://www.mycompany.com/cas/login
.
This method is 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.
encodeServiceUrlWithSessionId | whether to encode the service url with the session id or not. |
---|
Constructs the Url for Redirection to the CAS server. Default implementation relies on the CAS client to do the bulk of the work.
serviceUrl | the service url that should be included. |
---|
Constructs a new Service Url. The default implementation relies on the CAS client to do the bulk of the work.
request | the HttpServletRequest |
---|---|
response | the HttpServlet Response |
This method is 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.
Template method for you to do your own pre-processing before the redirect occurs.
request | the HttpServletRequest |
---|---|
response | the HttpServletResponse |