Class EncryptedHeaderBlock

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

    public class EncryptedHeaderBlock
    extends SOAPElementExtension
    implements jakarta.xml.soap.SOAPElement
    Corresponds to Schema definition for EncryptedData. Schema definition for EncryptedData is as follows:

    
     <xmp>
     <element name='EncryptedHeader' type='wsse11:EncryptedHeaderType'/>
     <complexType name='EncryptedHeaderType'>
       <element name='EncryptedData'>
         <complexContent>
             <extension base='xenc:EncryptedType'/>
         </complexContent>
       </element>
     </complexType>
     </xmp>
     
    Author:
    Mayank Mishra
    • Field Detail

      • delegateElement

        protected jakarta.xml.soap.SOAPElement delegateElement
    • Constructor Detail

      • EncryptedHeaderBlock

        public EncryptedHeaderBlock​(Document doc)
                             throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • EncryptedHeaderBlock

        public EncryptedHeaderBlock​(jakarta.xml.soap.SOAPElement delegateElement)
                             throws com.sun.xml.wss.XWSSecurityException
        Creates a new instance of EncryptedHeaderBlock
        Throws:
        com.sun.xml.wss.XWSSecurityException
    • Method Detail

      • setSOAPElement

        protected void setSOAPElement​(jakarta.xml.soap.SOAPElement delegateElement)
      • copyAttributes

        public void copyAttributes​(SecurableSoapMessage secureMsg,
                                   SecurityHeader _secHeader)
                            throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • setWsuIdAttr

        protected void setWsuIdAttr​(Element element,
                                    String wsuId)
      • getSoapFactory

        protected static jakarta.xml.soap.SOAPFactory getSoapFactory()
      • getId

        public String getId()
        Returns null if id attr is not present
      • setId

        public void setId​(String id)
      • getType

        public String getType()
        Returns null if Type attr is not present
      • setType

        public void setType​(String type)
      • getMimeType

        public String getMimeType()
        Returns null if MimeType attr is not present
      • setMimeType

        public void setMimeType​(String mimeType)
      • getAsSoapElement

        public jakarta.xml.soap.SOAPElement getAsSoapElement()
                                                      throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • addChildElement

        public jakarta.xml.soap.SOAPElement addChildElement​(jakarta.xml.soap.Name name)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        addChildElement in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addChildElement

        public jakarta.xml.soap.SOAPElement addChildElement​(String string)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        addChildElement in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addChildElement

        public jakarta.xml.soap.SOAPElement addChildElement​(String string,
                                                            String string0)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        addChildElement in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addChildElement

        public jakarta.xml.soap.SOAPElement addChildElement​(String string,
                                                            String string0,
                                                            String string1)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        addChildElement in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addChildElement

        public jakarta.xml.soap.SOAPElement addChildElement​(jakarta.xml.soap.SOAPElement sOAPElement)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        addChildElement in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • removeContents

        public void removeContents()
        Specified by:
        removeContents in interface jakarta.xml.soap.SOAPElement
      • addTextNode

        public jakarta.xml.soap.SOAPElement addTextNode​(String string)
                                                 throws jakarta.xml.soap.SOAPException
        Specified by:
        addTextNode in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addAttribute

        public jakarta.xml.soap.SOAPElement addAttribute​(jakarta.xml.soap.Name name,
                                                         String string)
                                                  throws jakarta.xml.soap.SOAPException
        Specified by:
        addAttribute in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addNamespaceDeclaration

        public jakarta.xml.soap.SOAPElement addNamespaceDeclaration​(String string,
                                                                    String string0)
                                                             throws jakarta.xml.soap.SOAPException
        Specified by:
        addNamespaceDeclaration in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • getAttributeValue

        public String getAttributeValue​(jakarta.xml.soap.Name name)
        Specified by:
        getAttributeValue in interface jakarta.xml.soap.SOAPElement
      • getAllAttributes

        public Iterator getAllAttributes()
        Specified by:
        getAllAttributes in interface jakarta.xml.soap.SOAPElement
      • getAllAttributesAsQNames

        public Iterator getAllAttributesAsQNames()
        Specified by:
        getAllAttributesAsQNames in interface jakarta.xml.soap.SOAPElement
      • getNamespaceURI

        public String getNamespaceURI​(String string)
        Specified by:
        getNamespaceURI in interface jakarta.xml.soap.SOAPElement
      • getNamespacePrefixes

        public Iterator getNamespacePrefixes()
        Specified by:
        getNamespacePrefixes in interface jakarta.xml.soap.SOAPElement
      • getVisibleNamespacePrefixes

        public Iterator getVisibleNamespacePrefixes()
        Specified by:
        getVisibleNamespacePrefixes in interface jakarta.xml.soap.SOAPElement
      • getElementName

        public jakarta.xml.soap.Name getElementName()
        Specified by:
        getElementName in interface jakarta.xml.soap.SOAPElement
      • removeAttribute

        public boolean removeAttribute​(jakarta.xml.soap.Name name)
        Specified by:
        removeAttribute in interface jakarta.xml.soap.SOAPElement
      • removeNamespaceDeclaration

        public boolean removeNamespaceDeclaration​(String string)
        Specified by:
        removeNamespaceDeclaration in interface jakarta.xml.soap.SOAPElement
      • getChildElements

        public Iterator getChildElements()
        Specified by:
        getChildElements in interface jakarta.xml.soap.SOAPElement
      • getChildElements

        public Iterator getChildElements​(jakarta.xml.soap.Name name)
        Specified by:
        getChildElements in interface jakarta.xml.soap.SOAPElement
      • setEncodingStyle

        public void setEncodingStyle​(String string)
                              throws jakarta.xml.soap.SOAPException
        Specified by:
        setEncodingStyle in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • getEncodingStyle

        public String getEncodingStyle()
        Specified by:
        getEncodingStyle in interface jakarta.xml.soap.SOAPElement
      • getValue

        public String getValue()
        Specified by:
        getValue in interface jakarta.xml.soap.Node
      • setValue

        public void setValue​(String string)
        Specified by:
        setValue in interface jakarta.xml.soap.Node
      • setParentElement

        public void setParentElement​(jakarta.xml.soap.SOAPElement sOAPElement)
                              throws jakarta.xml.soap.SOAPException
        Specified by:
        setParentElement in interface jakarta.xml.soap.Node
        Throws:
        jakarta.xml.soap.SOAPException
      • getParentElement

        public jakarta.xml.soap.SOAPElement getParentElement()
        Specified by:
        getParentElement in interface jakarta.xml.soap.Node
      • detachNode

        public void detachNode()
        Specified by:
        detachNode in interface jakarta.xml.soap.Node
      • recycleNode

        public void recycleNode()
        Specified by:
        recycleNode in interface jakarta.xml.soap.Node
      • getNodeType

        public short getNodeType()
        Specified by:
        getNodeType in interface Node
      • hasChildNodes

        public boolean hasChildNodes()
        Specified by:
        hasChildNodes in interface Node
      • cloneNode

        public Node cloneNode​(boolean deep)
        Specified by:
        cloneNode in interface Node
      • normalize

        public void normalize()
        Specified by:
        normalize in interface Node
      • hasAttributes

        public boolean hasAttributes()
        Specified by:
        hasAttributes in interface Node
      • isSameNode

        public boolean isSameNode​(Node other)
        Specified by:
        isSameNode in interface Node
      • isEqualNode

        public boolean isEqualNode​(Node arg)
        Specified by:
        isEqualNode in interface Node
      • isBSP

        public void isBSP​(boolean flag)
      • isBSP

        public boolean isBSP()