Class SecurityHeader

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

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

      • SecurityHeader

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

      • insertHeaderBlock

        public void insertHeaderBlock​(SecurityHeaderBlock block)
                               throws 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:
        XWSSecurityException
      • getCurrentHeaderBlockElement

        public javax.xml.soap.SOAPElement getCurrentHeaderBlockElement()
      • getCurrentHeaderElement

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

        public void updateTopMostSoapElement()
      • getFirstChildElement

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

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

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

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

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

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

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

        public javax.xml.soap.SOAPElement addChildElement​(javax.xml.soap.SOAPElement arg0)
                                                   throws javax.xml.soap.SOAPException
        Specified by:
        addChildElement in interface javax.xml.soap.SOAPElement
        Throws:
        javax.xml.soap.SOAPException
      • addNamespaceDeclaration

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

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

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

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

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

        public String getAttributeValue​(javax.xml.soap.Name arg0)
        Specified by:
        getAttributeValue in interface javax.xml.soap.SOAPElement
      • getChildElements

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

        public Iterator getChildElements​(javax.xml.soap.Name arg0)
        Specified by:
        getChildElements in interface javax.xml.soap.SOAPElement
      • getElementName

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

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

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

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

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

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

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

        public Iterator getVisibleNamespacePrefixes()
        Specified by:
        getVisibleNamespacePrefixes in interface javax.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 javax.xml.soap.Node
      • removeAttribute

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

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

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

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

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

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