org.jasig.cas.web.view
Class Saml10SuccessResponseView

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.view.AbstractView
              extended by org.jasig.cas.web.view.AbstractCasView
                  extended by org.jasig.cas.web.view.AbstractSaml10ResponseView
                      extended by org.jasig.cas.web.view.Saml10SuccessResponseView
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View

public final class Saml10SuccessResponseView
extends AbstractSaml10ResponseView

Implementation of a view to return a SAML SOAP response and assertion, based on the SAML 1.1 specification.

If an AttributePrincipal is supplied, then the assertion will include the attributes from it (assuming a String key/Object value pair). The only Authentication attribute it will look at is the authMethod (if supplied).

Note that this class will currently not handle proxy authentication.

Note: This class currently expects a bean called "ServiceRegistry" to exist.

Since:
3.1
Author:
Scott Battaglia, Marvin S. Addison

Field Summary
 
Fields inherited from class org.jasig.cas.web.view.AbstractCasView
log
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.web.servlet.View
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE
 
Constructor Summary
Saml10SuccessResponseView()
           
 
Method Summary
protected  void prepareResponse(org.opensaml.saml1.core.Response response, Map<String,Object> model)
          Subclasses must implement this method by adding child elements (status, assertion, etc) to the given empty SAML 1 response message.
 void setIssueLength(long issueLength)
           
 void setIssuer(String issuer)
           
 void setRememberMeAttributeName(String rememberMeAttributeName)
           
 
Methods inherited from class org.jasig.cas.web.view.AbstractSaml10ResponseView
generateId, newSamlObject, newStatus, renderMergedOutputModel, setEncoding
 
Methods inherited from class org.jasig.cas.web.view.AbstractCasView
getAssertionFrom
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, toString, writeToResponse
 
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, wait, wait, wait
 

Constructor Detail

Saml10SuccessResponseView

public Saml10SuccessResponseView()
Method Detail

prepareResponse

protected void prepareResponse(org.opensaml.saml1.core.Response response,
                               Map<String,Object> model)
Description copied from class: AbstractSaml10ResponseView
Subclasses must implement this method by adding child elements (status, assertion, etc) to the given empty SAML 1 response message. Impelmenters need not be concerned with error handling.

Specified by:
prepareResponse in class AbstractSaml10ResponseView
Parameters:
response - SAML 1 response message to be filled.
model - Spring MVC model map containing data needed to prepare response.

setIssueLength

public void setIssueLength(long issueLength)

setIssuer

public void setIssuer(String issuer)

setRememberMeAttributeName

public void setRememberMeAttributeName(String rememberMeAttributeName)


Copyright © 2004-2013 Jasig. All Rights Reserved.