Package com.sun.xml.wss.core
Class SecurityHeader
- java.lang.Object
-
- com.sun.xml.wss.impl.misc.SOAPElementExtension
-
- com.sun.xml.wss.core.SecurityHeader
-
public class SecurityHeader extends SOAPElementExtension implements javax.xml.soap.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(javax.xml.soap.SOAPElement delegateHeader)
-
Method Summary
-
Methods inherited from class com.sun.xml.wss.impl.misc.SOAPElementExtension
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
-
-
-
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
-
insertBefore
public void insertBefore(SecurityHeaderBlock block, Node elem) throws XWSSecurityException
- Throws:
XWSSecurityException
-
appendChild
public void appendChild(SecurityHeaderBlock block) throws XWSSecurityException
- Throws:
XWSSecurityException
-
insertHeaderBlockElement
public void insertHeaderBlockElement(javax.xml.soap.SOAPElement blockElement) throws XWSSecurityException- Throws:
XWSSecurityException
-
getCurrentHeaderBlock
public SecurityHeaderBlock getCurrentHeaderBlock(Class implType) throws XWSSecurityException
Get the header block to be processed next. This method will be used on the receiver side.- Throws:
XWSSecurityException
-
getCurrentHeaderBlockElement
public javax.xml.soap.SOAPElement getCurrentHeaderBlockElement()
-
setCurrentHeaderElement
public void setCurrentHeaderElement(javax.xml.soap.SOAPElement currentElement) throws XWSSecurityException- Throws:
XWSSecurityException
-
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:
addAttributein interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
addChildElement
public javax.xml.soap.SOAPElement addChildElement(String arg0) throws javax.xml.soap.SOAPException
- Specified by:
addChildElementin interfacejavax.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:
addChildElementin interfacejavax.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:
addChildElementin interfacejavax.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:
addChildElementin interfacejavax.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:
addChildElementin interfacejavax.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:
addNamespaceDeclarationin interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
addTextNode
public javax.xml.soap.SOAPElement addTextNode(String arg0) throws javax.xml.soap.SOAPException
- Specified by:
addTextNodein interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
appendChild
public Node appendChild(Node arg0) throws DOMException
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
makeUsable
public javax.xml.soap.SOAPElement makeUsable(javax.xml.soap.SOAPElement elem) throws XWSSecurityException- Throws:
XWSSecurityException
-
detachNode
public void detachNode()
- Specified by:
detachNodein interfacejavax.xml.soap.Node
-
getAllAttributes
public Iterator getAllAttributes()
- Specified by:
getAllAttributesin interfacejavax.xml.soap.SOAPElement
-
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(javax.xml.soap.Name arg0)
- Specified by:
getAttributeValuein interfacejavax.xml.soap.SOAPElement
-
getChildElements
public Iterator getChildElements()
- Specified by:
getChildElementsin interfacejavax.xml.soap.SOAPElement
-
getChildElements
public Iterator getChildElements(javax.xml.soap.Name arg0)
- Specified by:
getChildElementsin interfacejavax.xml.soap.SOAPElement
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode
-
getElementName
public javax.xml.soap.Name getElementName()
- Specified by:
getElementNamein interfacejavax.xml.soap.SOAPElement
-
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 interfacejavax.xml.soap.SOAPElement
-
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 interfacejavax.xml.soap.SOAPElement
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode
-
getNamespaceURI
public String getNamespaceURI(String arg0)
- Specified by:
getNamespaceURIin interfacejavax.xml.soap.SOAPElement
-
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 javax.xml.soap.SOAPElement getParentElement()
- Specified by:
getParentElementin interfacejavax.xml.soap.Node
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNodein interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceNode
-
getTagName
public String getTagName()
- Specified by:
getTagNamein interfaceElement
-
getValue
public String getValue()
- Specified by:
getValuein interfacejavax.xml.soap.Node
-
getVisibleNamespacePrefixes
public Iterator getVisibleNamespacePrefixes()
- Specified by:
getVisibleNamespacePrefixesin interfacejavax.xml.soap.SOAPElement
-
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 interfacejavax.xml.soap.Node
-
removeAttribute
public void removeAttribute(String arg0) throws DOMException
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
removeAttribute
public boolean removeAttribute(javax.xml.soap.Name arg0)
- Specified by:
removeAttributein interfacejavax.xml.soap.SOAPElement
-
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 interfacejavax.xml.soap.SOAPElement
-
removeNamespaceDeclaration
public boolean removeNamespaceDeclaration(String arg0)
- Specified by:
removeNamespaceDeclarationin interfacejavax.xml.soap.SOAPElement
-
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 javax.xml.soap.SOAPException
- Specified by:
setEncodingStylein interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
setNodeValue
public void setNodeValue(String arg0) throws DOMException
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
setParentElement
public void setParentElement(javax.xml.soap.SOAPElement arg0) throws javax.xml.soap.SOAPException- Specified by:
setParentElementin interfacejavax.xml.soap.Node- Throws:
javax.xml.soap.SOAPException
-
setPrefix
public void setPrefix(String arg0) throws DOMException
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
setValue
public void setValue(String arg0)
- Specified by:
setValuein interfacejavax.xml.soap.Node
-
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 interfacejavax.xml.soap.SOAPElement
-
-