Class SamlAssertionHeaderBlock

  • All Implemented Interfaces:
    SecurityHeaderBlock, SecurityToken, jakarta.xml.soap.Node, jakarta.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 Detail

      • 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​(jakarta.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 Detail

      • fromSoapElement

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

        public Document getContextDocument()
        Returns:
      • getDelegateAssertion

        public Element getDelegateAssertion()
        Returns: