Class SecurityHeader

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

    public class SecurityHeader
    extends SOAPElementExtension
    implements jakarta.xml.soap.SOAPElement
    Author:
    XWS-Security Development Team
    • Constructor Detail

      • SecurityHeader

        public SecurityHeader​(jakarta.xml.soap.SOAPElement delegateHeader)
    • Method Detail

      • insertHeaderBlock

        public void insertHeaderBlock​(SecurityHeaderBlock block)
                               throws com.sun.xml.wss.XWSSecurityException
        Inserts the header block at the top of the security header, i.e, the block becomes the first child element of the security header. This method will be used on the sender side.
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • insertBefore

        public void insertBefore​(SecurityHeaderBlock block,
                                 Node elem)
                          throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • appendChild

        public void appendChild​(SecurityHeaderBlock block)
                         throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • insertHeaderBlockElement

        public void insertHeaderBlockElement​(jakarta.xml.soap.SOAPElement blockElement)
                                      throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • getCurrentHeaderBlock

        public SecurityHeaderBlock getCurrentHeaderBlock​(Class implType)
                                                  throws com.sun.xml.wss.XWSSecurityException
        Get the header block to be processed next. This method will be used on the receiver side.
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • getCurrentHeaderBlockElement

        public jakarta.xml.soap.SOAPElement getCurrentHeaderBlockElement()
      • setCurrentHeaderElement

        public void setCurrentHeaderElement​(jakarta.xml.soap.SOAPElement currentElement)
                                     throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • getCurrentHeaderElement

        public jakarta.xml.soap.SOAPElement getCurrentHeaderElement()
      • updateTopMostSoapElement

        public void updateTopMostSoapElement()
      • getFirstChildElement

        public jakarta.xml.soap.SOAPElement getFirstChildElement()
      • getNextSiblingOfTimestamp

        public jakarta.xml.soap.SOAPElement getNextSiblingOfTimestamp()
      • getAsSoapElement

        public jakarta.xml.soap.SOAPElement getAsSoapElement()
      • setRole

        public void setRole​(String roleURI)
      • getRole

        public String getRole()
      • setMustUnderstand

        public void setMustUnderstand​(boolean mustUnderstand)
      • isMustUnderstand

        public boolean isMustUnderstand()
      • addAttribute

        public jakarta.xml.soap.SOAPElement addAttribute​(jakarta.xml.soap.Name arg0,
                                                         String arg1)
                                                  throws jakarta.xml.soap.SOAPException
        Specified by:
        addAttribute in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addChildElement

        public jakarta.xml.soap.SOAPElement addChildElement​(String arg0)
                                                     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 arg0,
                                                            String arg1)
                                                     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 arg0,
                                                            String arg1,
                                                            String arg2)
                                                     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.Name arg0)
                                                     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 arg0)
                                                     throws jakarta.xml.soap.SOAPException
        Specified by:
        addChildElement in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addNamespaceDeclaration

        public jakarta.xml.soap.SOAPElement addNamespaceDeclaration​(String arg0,
                                                                    String arg1)
                                                             throws jakarta.xml.soap.SOAPException
        Specified by:
        addNamespaceDeclaration in interface jakarta.xml.soap.SOAPElement
        Throws:
        jakarta.xml.soap.SOAPException
      • addTextNode

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

        public jakarta.xml.soap.SOAPElement makeUsable​(jakarta.xml.soap.SOAPElement elem)
                                                throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • cloneNode

        public Node cloneNode​(boolean arg0)
        Specified by:
        cloneNode in interface Node
      • detachNode

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

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

        public String getAttributeValue​(jakarta.xml.soap.Name arg0)
        Specified by:
        getAttributeValue 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 arg0)
        Specified by:
        getChildElements in interface jakarta.xml.soap.SOAPElement
      • getElementName

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

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

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

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

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

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

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

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

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • normalize

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

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

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

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

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

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

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

        public void setValue​(String arg0)
        Specified by:
        setValue in interface jakarta.xml.soap.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
      • getAllAttributesAsQNames

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