Class SamlAssertionHeaderBlock

All Implemented Interfaces:
SecurityHeaderBlock, SecurityToken, javax.xml.soap.Node, javax.xml.soap.SOAPElement, Element, Node

public class SamlAssertionHeaderBlock extends SecurityHeaderBlockImpl implements SecurityToken
The schema definition for a SAML Assertion is as follows:

 <xmp>
 <element name="Assertion" type="saml:AssertionType"/>
 <complexType name="AssertionType">
     <sequence>
         <element ref="saml:Conditions" minOccurs="0"/>
         <element ref="saml:Advice" minOccurs="0"/>
         <choice maxOccurs="unbounded">
             <element ref="saml:Statement"/>
             <element ref="saml:SubjectStatement"/>
             <element ref="saml:AuthenticationStatement"/>
             <element ref="saml:AuthorizationDecisionStatement"/>
             <element ref="saml:AttributeStatement"/>
         </choice>
         <element ref="ds:Signature" minOccurs="0"/>
     </sequence>
     <attribute name="MajorVersion" type="integer" use="required"/>
     <attribute name="MinorVersion" type="integer" use="required"/>
     <attribute name="AssertionID" type="saml:IDType" use="required"/>
     <attribute name="Issuer" type="string" use="required"/>
     <attribute name="IssueInstant" type="dateTime" use="required"/>
 </complexType>
 </xmp>
 
Author:
Axl Mattheus
  • Constructor Details

    • SamlAssertionHeaderBlock

      public SamlAssertionHeaderBlock(Element assertion, Document doc) throws com.sun.xml.wss.XWSSecurityException
      Constructs code>SamlAssertionHeaderBlock</code> from an existing SAML <code>Assertion</code>.
      Parameters:
      assertion -
      Throws:
      com.sun.xml.wss.XWSSecurityException
    • SamlAssertionHeaderBlock

      public SamlAssertionHeaderBlock(javax.xml.soap.SOAPElement element) throws com.sun.xml.wss.XWSSecurityException
      Constructs a SAML <code>Assertion</code> header block from an existing <code>SOAPElement</code>.
      Parameters:
      element - an existing SAML assertion element.
      Throws:
      com.sun.xml.wss.XWSSecurityException - when the element is not a valid template for a SAML <code>Assertion</code>.
  • Method Details

    • fromSoapElement

      public static SecurityHeaderBlock fromSoapElement(javax.xml.soap.SOAPElement element) throws com.sun.xml.wss.XWSSecurityException
      Parameters:
      element -
      Returns:
      Throws:
      com.sun.xml.wss.XWSSecurityException
    • getAsSoapElement

      public javax.xml.soap.SOAPElement getAsSoapElement() throws com.sun.xml.wss.XWSSecurityException
      Specified by:
      getAsSoapElement in interface SecurityHeaderBlock
      Overrides:
      getAsSoapElement in class SecurityHeaderBlockImpl
      Throws:
      com.sun.xml.wss.XWSSecurityException
    • getContextDocument

      public Document getContextDocument()
      Returns:
    • getDelegateAssertion

      public Element getDelegateAssertion()
      Returns: