public abstract class AbstractSaml10ResponseView
extends org.apereo.cas.services.web.view.AbstractCasView
| Modifier and Type | Field and Description |
|---|---|
protected int |
issueLength
Assertion validity period length.
|
protected Saml10ObjectBuilder |
samlObjectBuilder
The Saml object builder.
|
protected int |
skewAllowance
Skew time.
|
| Constructor and Description |
|---|
AbstractSaml10ResponseView(boolean successResponse,
org.apereo.cas.authentication.ProtocolAttributeEncoder protocolAttributeEncoder,
org.apereo.cas.services.ServicesManager servicesManager,
java.lang.String authenticationContextAttribute,
Saml10ObjectBuilder samlObjectBuilder,
org.apereo.cas.web.support.ArgumentExtractor samlArgumentExtractor,
java.lang.String encoding,
int skewAllowance,
int issueLength,
org.apereo.cas.authentication.AuthenticationAttributeReleasePolicy authAttrReleasePolicy)
Instantiates a new Abstract saml 10 response view.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
prepareResponse(org.opensaml.saml.saml1.core.Response response,
java.util.Map<java.lang.String,java.lang.Object> model)
Subclasses must implement this method by adding child elements (status, assertion, etc) to
the given empty SAML 1 response message.
|
protected void |
renderMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
decideAttributeReleaseBasedOnServiceAttributePolicy, decideIfCredentialPasswordShouldBeReleasedAsAttribute, decideIfProxyGrantingTicketShouldBeReleasedAsAttribute, getAssertionFrom, getAuthenticationAttribute, getAuthenticationAttributeReleasePolicy, getAuthenticationAttributes, getAuthenticationAttributesAsMultiValuedAttributes, getAuthenticationContextAttribute, getAuthenticationDate, getChainedAuthentications, getErrorCodeFrom, getErrorDescriptionFrom, getModelAttributes, getPrimaryAuthenticationFrom, getPrincipal, getPrincipalAttributesAsMultiValuedAttributes, getProtocolAttributeEncoder, getProxyGrantingTicketId, getProxyGrantingTicketIou, getSatisfiedMultifactorAuthenticationProviderId, getServiceFrom, getServicesManager, isAssertionBackedByNewLogin, isRememberMeAuthentication, isSuccessResponse, putAllIntoModel, putIntoModeladdStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected final Saml10ObjectBuilder samlObjectBuilder
protected final int skewAllowance
protected final int issueLength
public AbstractSaml10ResponseView(boolean successResponse,
org.apereo.cas.authentication.ProtocolAttributeEncoder protocolAttributeEncoder,
org.apereo.cas.services.ServicesManager servicesManager,
java.lang.String authenticationContextAttribute,
Saml10ObjectBuilder samlObjectBuilder,
org.apereo.cas.web.support.ArgumentExtractor samlArgumentExtractor,
java.lang.String encoding,
int skewAllowance,
int issueLength,
org.apereo.cas.authentication.AuthenticationAttributeReleasePolicy authAttrReleasePolicy)
successResponse - the success responseprotocolAttributeEncoder - the protocol attribute encoderservicesManager - the services managerauthenticationContextAttribute - the authentication context attributesamlObjectBuilder - the saml object buildersamlArgumentExtractor - the saml argument extractorencoding - Sets the character encoding in the HTTP response.skewAllowance - Sets the allowance for time skew in seconds
between CAS and the client server. Default 0s. This value will be
subtracted from the current time when setting the SAML
NotBeforeDate attribute, thereby allowing for the
CAS server to be ahead of the client by as much as the value defined here.
Skewing of the issue instant via setting this property
applies to all saml assertions that are issued by CAS and it
currently cannot be controlled on a per relying party basis.
Before configuring this, it is recommended that each service provider
attempt to correctly sync their system time with an NTP server
so as to match the CAS server's issue instant config and to
avoid applying this setting globally. This should only
be used in situations where the NTP server is unresponsive to
sync time on the client, or the client is simply unable
to adjust their server time configuration.issueLength - Sets the length of time in seconds between the NotBefore
and NotOnOrAfter attributes in the SAML assertion. Default 30s.authAttrReleasePolicy - This policy controls which authentication attributes get released in a
validation response.protected void renderMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
renderMergedOutputModel in class org.springframework.web.servlet.view.AbstractViewjava.lang.Exceptionprotected abstract void prepareResponse(org.opensaml.saml.saml1.core.Response response,
java.util.Map<java.lang.String,java.lang.Object> model)
response - SAML 1 response message to be filled.model - Spring MVC model map containing data needed to prepare response.