Class ReferenceListHeaderBlock

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

    public class ReferenceListHeaderBlock
    extends SecurityHeaderBlockImpl
    A ReferenceList element is defined as follows:
    
     <xmp>
     <element name='ReferenceList'>
         <complexType>
             <choice minOccurs='1' maxOccurs='unbounded'>
                 <element name='DataReference' type='xenc:ReferenceType'/>
                 <element name='KeyReference' type='xenc:ReferenceType'/>
             </choice>
         </complexType>
     </element>
     </xmp>
     
    Author:
    Vishal Mahajan
    • Constructor Detail

      • ReferenceListHeaderBlock

        public ReferenceListHeaderBlock()
                                 throws com.sun.xml.wss.XWSSecurityException
        Creates an empty ReferenceList element.
        Throws:
        com.sun.xml.wss.XWSSecurityException - If there is problem creating a ReferenceList element.
      • ReferenceListHeaderBlock

        public ReferenceListHeaderBlock​(Document doc)
                                 throws com.sun.xml.wss.XWSSecurityException
        Create an empty ReferenceList element whose owner document is doc
        Throws:
        com.sun.xml.wss.XWSSecurityException - If there is problem creating a ReferenceList element.
      • ReferenceListHeaderBlock

        public ReferenceListHeaderBlock​(javax.xml.soap.SOAPElement element)
                                 throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException - If the given element does not have an appropriate name.
    • Method Detail

      • size

        public int size()
      • addReference

        public void addReference​(String referenceURI)
                          throws com.sun.xml.wss.XWSSecurityException
        Adds a reference to the reference list.
        Throws:
        com.sun.xml.wss.XWSSecurityException - If there is problem adding a reference
      • getReferences

        public Iterator getReferences()
        Returns:
        Iterator over referenceURI Strings
      • getDataRefElements

        public NodeList getDataRefElements()
      • fromSoapElement

        public static SecurityHeaderBlock fromSoapElement​(javax.xml.soap.SOAPElement element)
                                                   throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException