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.Saml10SuccessResponseView
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View

public class Saml10SuccessResponseView
extends AbstractCasView

Implementation of a view to return a SAML 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
Version:
$Revision: 48180 $ $Date: 2010-03-14 00:05:58 -0500 (Sun, 14 Mar 2010) $
Author:
Scott Battaglia

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
RESPONSE_STATUS_ATTRIBUTE
 
Constructor Summary
Saml10SuccessResponseView()
           
 
Method Summary
protected  org.opensaml.SAMLSubject getSamlSubject(Authentication authentication)
           
protected  void renderMergedOutputModel(java.util.Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void setEncoding(java.lang.String encoding)
           
 void setIssueLength(long issueLength)
           
 void setIssuer(java.lang.String issuer)
           
 
Methods inherited from class org.jasig.cas.web.view.AbstractCasView
getAssertionFrom
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, 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

renderMergedOutputModel

protected void renderMergedOutputModel(java.util.Map model,
                                       javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                throws java.lang.Exception
Specified by:
renderMergedOutputModel in class org.springframework.web.servlet.view.AbstractView
Throws:
java.lang.Exception

getSamlSubject

protected org.opensaml.SAMLSubject getSamlSubject(Authentication authentication)
                                           throws org.opensaml.SAMLException
Throws:
org.opensaml.SAMLException

setIssueLength

public void setIssueLength(long issueLength)

setIssuer

public void setIssuer(java.lang.String issuer)

setEncoding

public void setEncoding(java.lang.String encoding)


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.