public class ServiceValidateController extends DelegateController
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, ...).
| Constructor and Description |
|---|
ServiceValidateController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Determine if a DelegateController subclass can handle the current request.
|
protected Credentials |
getServiceCredentialsFromRequest(javax.servlet.http.HttpServletRequest request)
Overrideable method to determine which credentials to use to grant a
proxy granting ticket.
|
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder) |
protected void |
onSuccessfulValidation(String serviceTicketId,
Assertion assertion) |
void |
setArgumentExtractor(ArgumentExtractor argumentExtractor) |
void |
setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService) |
void |
setFailureView(String failureView) |
void |
setProxyHandler(ProxyHandler proxyHandler) |
void |
setSuccessView(String successView) |
void |
setValidationSpecificationClass(Class<?> validationSpecificationClass) |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected Credentials getServiceCredentialsFromRequest(javax.servlet.http.HttpServletRequest request)
request - the HttpServletRequest object.protected void initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
protected final org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractControllerExceptionprotected void onSuccessfulValidation(String serviceTicketId, Assertion assertion)
public boolean canHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
canHandle in class DelegateControllerrequest - the current requestresponse - the responsepublic final void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
centralAuthenticationService - The centralAuthenticationService to
set.public final void setArgumentExtractor(ArgumentExtractor argumentExtractor)
public final void setValidationSpecificationClass(Class<?> validationSpecificationClass)
validationSpecificationClass - The authenticationSpecificationClass
to set.public final void setFailureView(String failureView)
failureView - The failureView to set.public final void setSuccessView(String successView)
successView - The successView to set.public final void setProxyHandler(ProxyHandler proxyHandler)
proxyHandler - The proxyHandler to set.Copyright © 2004-2012 Jasig. All Rights Reserved.