Package com.sun.xml.wss.core
Class SecurityHeader
- java.lang.Object
-
- com.sun.xml.wss.impl.misc.SOAPElementExtension
-
- com.sun.xml.wss.core.SecurityHeader
-
- All Implemented Interfaces:
Node,SOAPElement,Element,Node
public class SecurityHeader extends SOAPElementExtension implements SOAPElement
- Author:
- XWS-Security Development Team
-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Constructor Summary
Constructors Constructor Description SecurityHeader(SOAPElement delegateHeader)
-
Method Summary
-
Methods inherited from class com.sun.xml.wss.impl.misc.SOAPElementExtension
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.soap.SOAPElement
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
-
-
-
Constructor Detail
-
SecurityHeader
public SecurityHeader(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(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 SOAPElement getCurrentHeaderBlockElement()
-
setCurrentHeaderElement
public void setCurrentHeaderElement(SOAPElement currentElement) throws com.sun.xml.wss.XWSSecurityException
- Throws:
com.sun.xml.wss.XWSSecurityException
-
getCurrentHeaderElement
public SOAPElement getCurrentHeaderElement()
-
updateTopMostSoapElement
public void updateTopMostSoapElement()
-
getFirstChildElement
public SOAPElement getFirstChildElement()
-
getNextSiblingOfTimestamp
public SOAPElement getNextSiblingOfTimestamp()
-
getAsSoapElement
public SOAPElement getAsSoapElement()
-
setRole
public void setRole(String roleURI)
-
getRole
public String getRole()
-
setMustUnderstand
public void setMustUnderstand(boolean mustUnderstand)
-
isMustUnderstand
public boolean isMustUnderstand()
-
addAttribute
public SOAPElement addAttribute(Name arg0, String arg1) throws SOAPException
- Specified by:
addAttributein interfaceSOAPElement- Throws:
SOAPException
-
addChildElement
public SOAPElement addChildElement(String arg0) throws SOAPException
- Specified by:
addChildElementin interfaceSOAPElement- Throws:
SOAPException
-
addChildElement
public SOAPElement addChildElement(String arg0, String arg1) throws SOAPException
- Specified by:
addChildElementin interfaceSOAPElement- Throws:
SOAPException
-
addChildElement
public SOAPElement addChildElement(String arg0, String arg1, String arg2) throws SOAPException
- Specified by:
addChildElementin interfaceSOAPElement- Throws:
SOAPException
-
addChildElement
public SOAPElement addChildElement(Name arg0) throws SOAPException
- Specified by:
addChildElementin interfaceSOAPElement- Throws:
SOAPException
-
addChildElement
public SOAPElement addChildElement(SOAPElement arg0) throws SOAPException
- Specified by:
addChildElementin interfaceSOAPElement- Throws:
SOAPException
-
addNamespaceDeclaration
public SOAPElement addNamespaceDeclaration(String arg0, String arg1) throws SOAPException
- Specified by:
addNamespaceDeclarationin interfaceSOAPElement- Throws:
SOAPException
-
addTextNode
public SOAPElement addTextNode(String arg0) throws SOAPException
- Specified by:
addTextNodein interfaceSOAPElement- Throws:
SOAPException
-
appendChild
public Node appendChild(Node arg0) throws DOMException
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
makeUsable
public SOAPElement makeUsable(SOAPElement elem) throws com.sun.xml.wss.XWSSecurityException
- Throws:
com.sun.xml.wss.XWSSecurityException
-
detachNode
public void detachNode()
- Specified by:
detachNodein interfaceNode
-
getAllAttributes
public Iterator getAllAttributes()
- Specified by:
getAllAttributesin interfaceSOAPElement
-
getAttribute
public String getAttribute(String arg0)
- Specified by:
getAttributein interfaceElement
-
getAttributeNode
public Attr getAttributeNode(String arg0)
- Specified by:
getAttributeNodein interfaceElement
-
getAttributeNodeNS
public Attr getAttributeNodeNS(String arg0, String arg1)
- Specified by:
getAttributeNodeNSin interfaceElement
-
getAttributeNS
public String getAttributeNS(String arg0, String arg1)
- Specified by:
getAttributeNSin interfaceElement
-
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributesin interfaceNode
-
getAttributeValue
public String getAttributeValue(Name arg0)
- Specified by:
getAttributeValuein interfaceSOAPElement
-
getChildElements
public Iterator getChildElements()
- Specified by:
getChildElementsin interfaceSOAPElement
-
getChildElements
public Iterator getChildElements(Name arg0)
- Specified by:
getChildElementsin interfaceSOAPElement
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode
-
getElementName
public Name getElementName()
- Specified by:
getElementNamein interfaceSOAPElement
-
getElementsByTagName
public NodeList getElementsByTagName(String arg0)
- Specified by:
getElementsByTagNamein interfaceElement
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String arg0, String arg1)
- Specified by:
getElementsByTagNameNSin interfaceElement
-
getEncodingStyle
public String getEncodingStyle()
- Specified by:
getEncodingStylein interfaceSOAPElement
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChildin interfaceNode
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceNode
-
getNamespacePrefixes
public Iterator getNamespacePrefixes()
- Specified by:
getNamespacePrefixesin interfaceSOAPElement
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode
-
getNamespaceURI
public String getNamespaceURI(String arg0)
- Specified by:
getNamespaceURIin interfaceSOAPElement
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSiblingin interfaceNode
-
getNodeName
public String getNodeName()
- Specified by:
getNodeNamein interfaceNode
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocumentin interfaceNode
-
getParentElement
public SOAPElement getParentElement()
- Specified by:
getParentElementin interfaceNode
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNodein interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceNode
-
getTagName
public String getTagName()
- Specified by:
getTagNamein interfaceElement
-
getVisibleNamespacePrefixes
public Iterator getVisibleNamespacePrefixes()
- Specified by:
getVisibleNamespacePrefixesin interfaceSOAPElement
-
hasAttribute
public boolean hasAttribute(String arg0)
- Specified by:
hasAttributein interfaceElement
-
hasAttributeNS
public boolean hasAttributeNS(String arg0, String arg1)
- Specified by:
hasAttributeNSin interfaceElement
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributesin interfaceNode
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceNode
-
insertBefore
public Node insertBefore(Node arg0, Node arg1) throws DOMException
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
isSupported
public boolean isSupported(String arg0, String arg1)
- Specified by:
isSupportedin interfaceNode
-
recycleNode
public void recycleNode()
- Specified by:
recycleNodein interfaceNode
-
removeAttribute
public void removeAttribute(String arg0) throws DOMException
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
removeAttribute
public boolean removeAttribute(Name arg0)
- Specified by:
removeAttributein interfaceSOAPElement
-
removeAttributeNode
public Attr removeAttributeNode(Attr arg0) throws DOMException
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException
-
removeAttributeNS
public void removeAttributeNS(String arg0, String arg1) throws DOMException
- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException
-
removeChild
public Node removeChild(Node arg0) throws DOMException
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
removeContents
public void removeContents()
- Specified by:
removeContentsin interfaceSOAPElement
-
removeNamespaceDeclaration
public boolean removeNamespaceDeclaration(String arg0)
- Specified by:
removeNamespaceDeclarationin interfaceSOAPElement
-
replaceChild
public Node replaceChild(Node arg0, Node arg1) throws DOMException
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
setAttribute
public void setAttribute(String arg0, String arg1) throws DOMException
- Specified by:
setAttributein interfaceElement- Throws:
DOMException
-
setAttributeNode
public Attr setAttributeNode(Attr arg0) throws DOMException
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException
-
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr arg0) throws DOMException
- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException
-
setAttributeNS
public void setAttributeNS(String arg0, String arg1, String arg2) throws DOMException
- Specified by:
setAttributeNSin interfaceElement- Throws:
DOMException
-
setEncodingStyle
public void setEncodingStyle(String arg0) throws SOAPException
- Specified by:
setEncodingStylein interfaceSOAPElement- Throws:
SOAPException
-
setNodeValue
public void setNodeValue(String arg0) throws DOMException
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
setParentElement
public void setParentElement(SOAPElement arg0) throws SOAPException
- Specified by:
setParentElementin interfaceNode- Throws:
SOAPException
-
setPrefix
public void setPrefix(String arg0) throws DOMException
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
public void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
public boolean isEqualNode(Node arg)
- Specified by:
isEqualNodein interfaceNode
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeaturein interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserDatain interfaceNode
-
getUserData
public Object getUserData(String key)
- Specified by:
getUserDatain interfaceNode
-
setIdAttribute
public void setIdAttribute(String name, boolean isId) throws DOMException
- Specified by:
setIdAttributein interfaceElement- Throws:
DOMException
-
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
- Specified by:
setIdAttributeNodein interfaceElement- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
- Specified by:
setIdAttributeNSin interfaceElement- Throws:
DOMException
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfoin interfaceElement
-
getAllAttributesAsQNames
public Iterator getAllAttributesAsQNames()
- Specified by:
getAllAttributesAsQNamesin interfaceSOAPElement
-
-