org.jasig.cas.web
Class ServiceValidateController
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.AbstractController
org.jasig.cas.web.ServiceValidateController
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller
public class ServiceValidateController
- extends org.springframework.web.servlet.mvc.AbstractController
Process the /validate and /serviceValidate URL requests.
Obtain the Service Ticket and Service information and present them to the CAS
validation services. Receive back an Assertion containing the user Principal
and (possibly) a chain of Proxy Principals. Store the Assertion in the Model
and chain to a View to generate the appropriate response (CAS 1, CAS 2 XML,
SAML, ...).
- Since:
- 3.0
- Version:
- $Revision: 47522 $ $Date: 2009-12-14 23:33:36 -0500 (Mon, 14 Dec 2009) $
- Author:
- Scott Battaglia
| Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator |
METHOD_GET, METHOD_HEAD, METHOD_POST |
| Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
| Methods inherited from class org.springframework.web.servlet.mvc.AbstractController |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession |
| Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator |
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceValidateController
public ServiceValidateController()
getServiceCredentialsFromRequest
protected Credentials getServiceCredentialsFromRequest(javax.servlet.http.HttpServletRequest request)
- Overrideable method to determine which credentials to use to grant a
proxy granting ticket. Default is to use the pgtUrl.
- Parameters:
request - the HttpServletRequest object.
- Returns:
- the credentials or null if there was an error or no credentials
provided.
initBinder
protected void initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
handleRequestInternal
protected final org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Specified by:
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractController
- Throws:
java.lang.Exception
setCentralAuthenticationService
public void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
- Parameters:
centralAuthenticationService - The centralAuthenticationService to
set.
setArgumentExtractor
public void setArgumentExtractor(ArgumentExtractor argumentExtractor)
setValidationSpecificationClass
public void setValidationSpecificationClass(java.lang.Class<?> validationSpecificationClass)
- Parameters:
validationSpecificationClass - The authenticationSpecificationClass
to set.
setFailureView
public void setFailureView(java.lang.String failureView)
- Parameters:
failureView - The failureView to set.
setSuccessView
public void setSuccessView(java.lang.String successView)
- Parameters:
successView - The successView to set.
setProxyHandler
public void setProxyHandler(ProxyHandler proxyHandler)
- Parameters:
proxyHandler - The proxyHandler to set.
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.