Package com.sun.xml.wss.core
Class SecurityHeader
java.lang.Object
com.sun.xml.wss.impl.misc.SOAPElementExtension
com.sun.xml.wss.core.SecurityHeader
- 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
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPElement
addAttribute
(jakarta.xml.soap.Name arg0, String arg1) jakarta.xml.soap.SOAPElement
addChildElement
(jakarta.xml.soap.Name arg0) jakarta.xml.soap.SOAPElement
addChildElement
(jakarta.xml.soap.SOAPElement arg0) jakarta.xml.soap.SOAPElement
addChildElement
(String arg0) jakarta.xml.soap.SOAPElement
addChildElement
(String arg0, String arg1) jakarta.xml.soap.SOAPElement
addChildElement
(String arg0, String arg1, String arg2) jakarta.xml.soap.SOAPElement
addNamespaceDeclaration
(String arg0, String arg1) jakarta.xml.soap.SOAPElement
addTextNode
(String arg0) void
appendChild
(SecurityHeaderBlock block) appendChild
(Node arg0) cloneNode
(boolean arg0) short
compareDocumentPosition
(Node other) void
boolean
jakarta.xml.soap.SOAPElement
getAttribute
(String arg0) getAttributeNode
(String arg0) getAttributeNodeNS
(String arg0, String arg1) getAttributeNS
(String arg0, String arg1) getAttributeValue
(jakarta.xml.soap.Name arg0) getChildElements
(jakarta.xml.soap.Name arg0) getCurrentHeaderBlock
(Class implType) Get the header block to be processed next.jakarta.xml.soap.SOAPElement
jakarta.xml.soap.SOAPElement
jakarta.xml.soap.Name
getElementsByTagName
(String arg0) getElementsByTagNameNS
(String arg0, String arg1) getFeature
(String feature, String version) jakarta.xml.soap.SOAPElement
getNamespaceURI
(String arg0) jakarta.xml.soap.SOAPElement
short
jakarta.xml.soap.SOAPElement
getRole()
getUserData
(String key) getValue()
boolean
hasAttribute
(String arg0) boolean
hasAttributeNS
(String arg0, String arg1) boolean
boolean
int
hashCode()
void
insertBefore
(SecurityHeaderBlock block, Node elem) insertBefore
(Node arg0, Node arg1) void
Inserts the header block at the top of the security header, i.e, the block becomes the first child element of the security header.void
insertHeaderBlockElement
(jakarta.xml.soap.SOAPElement blockElement) boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node arg) boolean
boolean
isSameNode
(Node other) boolean
isSupported
(String arg0, String arg1) lookupNamespaceURI
(String prefix) lookupPrefix
(String namespaceURI) jakarta.xml.soap.SOAPElement
makeUsable
(jakarta.xml.soap.SOAPElement elem) void
void
boolean
removeAttribute
(jakarta.xml.soap.Name arg0) void
removeAttribute
(String arg0) removeAttributeNode
(Attr arg0) void
removeAttributeNS
(String arg0, String arg1) removeChild
(Node arg0) void
boolean
replaceChild
(Node arg0, Node arg1) void
setAttribute
(String arg0, String arg1) setAttributeNode
(Attr arg0) setAttributeNodeNS
(Attr arg0) void
setAttributeNS
(String arg0, String arg1, String arg2) void
setCurrentHeaderElement
(jakarta.xml.soap.SOAPElement currentElement) void
setEncodingStyle
(String arg0) void
setIdAttribute
(String name, boolean isId) void
setIdAttributeNode
(Attr idAttr, boolean isId) void
setIdAttributeNS
(String namespaceURI, String localName, boolean isId) void
setMustUnderstand
(boolean mustUnderstand) void
setNodeValue
(String arg0) void
setParentElement
(jakarta.xml.soap.SOAPElement arg0) void
void
void
setTextContent
(String textContent) setUserData
(String key, Object data, UserDataHandler handler) void
toString()
void
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 jakarta.xml.soap.SOAPElement
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
Constructor Details
-
SecurityHeader
public SecurityHeader(jakarta.xml.soap.SOAPElement delegateHeader)
-
-
Method Details
-
insertHeaderBlock
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
- Throws:
XWSSecurityException
-
appendChild
- Throws:
XWSSecurityException
-
insertHeaderBlockElement
public void insertHeaderBlockElement(jakarta.xml.soap.SOAPElement blockElement) throws XWSSecurityException - Throws:
XWSSecurityException
-
getCurrentHeaderBlock
Get the header block to be processed next. This method will be used on the receiver side.- Throws:
XWSSecurityException
-
getCurrentHeaderBlockElement
public jakarta.xml.soap.SOAPElement getCurrentHeaderBlockElement() -
setCurrentHeaderElement
public void setCurrentHeaderElement(jakarta.xml.soap.SOAPElement currentElement) throws XWSSecurityException - Throws:
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
-
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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
addTextNode
- Specified by:
addTextNode
in interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
appendChild
- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
makeUsable
public jakarta.xml.soap.SOAPElement makeUsable(jakarta.xml.soap.SOAPElement elem) throws XWSSecurityException - Throws:
XWSSecurityException
-
cloneNode
-
detachNode
public void detachNode()- Specified by:
detachNode
in interfacejakarta.xml.soap.Node
-
equals
-
getAllAttributes
- Specified by:
getAllAttributes
in interfacejakarta.xml.soap.SOAPElement
-
getAttribute
- Specified by:
getAttribute
in interfaceElement
-
getAttributeNode
- Specified by:
getAttributeNode
in interfaceElement
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNS
in interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNS
in interfaceElement
-
getAttributes
- Specified by:
getAttributes
in interfaceNode
-
getAttributeValue
- Specified by:
getAttributeValue
in interfacejakarta.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElements
in interfacejakarta.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElements
in interfacejakarta.xml.soap.SOAPElement
-
getChildNodes
- Specified by:
getChildNodes
in interfaceNode
-
getElementName
public jakarta.xml.soap.Name getElementName()- Specified by:
getElementName
in interfacejakarta.xml.soap.SOAPElement
-
getElementsByTagName
- Specified by:
getElementsByTagName
in interfaceElement
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNS
in interfaceElement
-
getEncodingStyle
- Specified by:
getEncodingStyle
in interfacejakarta.xml.soap.SOAPElement
-
getFirstChild
- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
- Specified by:
getLastChild
in interfaceNode
-
getLocalName
- Specified by:
getLocalName
in interfaceNode
-
getNamespacePrefixes
- Specified by:
getNamespacePrefixes
in interfacejakarta.xml.soap.SOAPElement
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfacejakarta.xml.soap.SOAPElement
-
getNextSibling
- Specified by:
getNextSibling
in interfaceNode
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
getOwnerDocument
- Specified by:
getOwnerDocument
in interfaceNode
-
getParentElement
public jakarta.xml.soap.SOAPElement getParentElement()- Specified by:
getParentElement
in interfacejakarta.xml.soap.Node
-
getParentNode
- Specified by:
getParentNode
in interfaceNode
-
getPrefix
-
getPreviousSibling
- Specified by:
getPreviousSibling
in interfaceNode
-
getTagName
- Specified by:
getTagName
in interfaceElement
-
getValue
- Specified by:
getValue
in interfacejakarta.xml.soap.Node
-
getVisibleNamespacePrefixes
- Specified by:
getVisibleNamespacePrefixes
in interfacejakarta.xml.soap.SOAPElement
-
hasAttribute
- Specified by:
hasAttribute
in interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNS
in interfaceElement
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributes
in interfaceNode
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodes
in interfaceNode
-
hashCode
public int hashCode() -
insertBefore
- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
isSupported
- Specified by:
isSupported
in interfaceNode
-
normalize
public void normalize() -
recycleNode
public void recycleNode()- Specified by:
recycleNode
in interfacejakarta.xml.soap.Node
-
removeAttribute
- Specified by:
removeAttribute
in interfaceElement
- Throws:
DOMException
-
removeAttribute
public boolean removeAttribute(jakarta.xml.soap.Name arg0) - Specified by:
removeAttribute
in interfacejakarta.xml.soap.SOAPElement
-
removeAttributeNode
- Specified by:
removeAttributeNode
in interfaceElement
- Throws:
DOMException
-
removeAttributeNS
- Specified by:
removeAttributeNS
in interfaceElement
- Throws:
DOMException
-
removeChild
- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
removeContents
public void removeContents()- Specified by:
removeContents
in interfacejakarta.xml.soap.SOAPElement
-
removeNamespaceDeclaration
- Specified by:
removeNamespaceDeclaration
in interfacejakarta.xml.soap.SOAPElement
-
replaceChild
- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
setAttribute
- Specified by:
setAttribute
in interfaceElement
- Throws:
DOMException
-
setAttributeNode
- Specified by:
setAttributeNode
in interfaceElement
- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
setAttributeNS
- Specified by:
setAttributeNS
in interfaceElement
- Throws:
DOMException
-
setEncodingStyle
- Specified by:
setEncodingStyle
in interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
setNodeValue
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
setParentElement
public void setParentElement(jakarta.xml.soap.SOAPElement arg0) throws jakarta.xml.soap.SOAPException - Specified by:
setParentElement
in interfacejakarta.xml.soap.Node
- Throws:
jakarta.xml.soap.SOAPException
-
setPrefix
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
setValue
- Specified by:
setValue
in interfacejakarta.xml.soap.Node
-
toString
-
getBaseURI
- Specified by:
getBaseURI
in interfaceNode
-
compareDocumentPosition
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
getTextContent
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNode
in interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefix
in interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURI
in interfaceNode
-
isEqualNode
- Specified by:
isEqualNode
in interfaceNode
-
getFeature
- Specified by:
getFeature
in interfaceNode
-
setUserData
- Specified by:
setUserData
in interfaceNode
-
getUserData
- Specified by:
getUserData
in interfaceNode
-
setIdAttribute
- Specified by:
setIdAttribute
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNode
- Specified by:
setIdAttributeNode
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException - Specified by:
setIdAttributeNS
in interfaceElement
- Throws:
DOMException
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfo
in interfaceElement
-
getAllAttributesAsQNames
- Specified by:
getAllAttributesAsQNames
in interfacejakarta.xml.soap.SOAPElement
-