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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPElementaddAttribute(jakarta.xml.soap.Name arg0, String arg1) jakarta.xml.soap.SOAPElementaddChildElement(jakarta.xml.soap.Name arg0) jakarta.xml.soap.SOAPElementaddChildElement(jakarta.xml.soap.SOAPElement arg0) jakarta.xml.soap.SOAPElementaddChildElement(String arg0) jakarta.xml.soap.SOAPElementaddChildElement(String arg0, String arg1) jakarta.xml.soap.SOAPElementaddChildElement(String arg0, String arg1, String arg2) jakarta.xml.soap.SOAPElementaddNamespaceDeclaration(String arg0, String arg1) jakarta.xml.soap.SOAPElementaddTextNode(String arg0) voidappendChild(SecurityHeaderBlock block) appendChild(Node arg0) cloneNode(boolean arg0) shortcompareDocumentPosition(Node other) voidbooleanIterator<jakarta.xml.soap.Name>jakarta.xml.soap.SOAPElementgetAttribute(String arg0) getAttributeNode(String arg0) getAttributeNodeNS(String arg0, String arg1) getAttributeNS(String arg0, String arg1) getAttributeValue(jakarta.xml.soap.Name arg0) Iterator<jakarta.xml.soap.Node>Iterator<jakarta.xml.soap.Node>getChildElements(jakarta.xml.soap.Name arg0) getCurrentHeaderBlock(Class implType) Get the header block to be processed next.jakarta.xml.soap.SOAPElementjakarta.xml.soap.SOAPElementjakarta.xml.soap.NamegetElementsByTagName(String arg0) getElementsByTagNameNS(String arg0, String arg1) getFeature(String feature, String version) jakarta.xml.soap.SOAPElementgetNamespaceURI(String arg0) jakarta.xml.soap.SOAPElementshortjakarta.xml.soap.SOAPElementgetRole()getUserData(String key) getValue()booleanhasAttribute(String arg0) booleanhasAttributeNS(String arg0, String arg1) booleanbooleaninthashCode()voidinsertBefore(SecurityHeaderBlock block, Node elem) insertBefore(Node arg0, Node arg1) voidInserts the header block at the top of the security header, i.e, the block becomes the first child element of the security header.voidinsertHeaderBlockElement(jakarta.xml.soap.SOAPElement blockElement) booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) booleanbooleanisSameNode(Node other) booleanisSupported(String arg0, String arg1) lookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) jakarta.xml.soap.SOAPElementmakeUsable(jakarta.xml.soap.SOAPElement elem) voidvoidbooleanremoveAttribute(jakarta.xml.soap.Name arg0) voidremoveAttribute(String arg0) removeAttributeNode(Attr arg0) voidremoveAttributeNS(String arg0, String arg1) removeChild(Node arg0) voidbooleanreplaceChild(Node arg0, Node arg1) voidsetAttribute(String arg0, String arg1) setAttributeNode(Attr arg0) setAttributeNodeNS(Attr arg0) voidsetAttributeNS(String arg0, String arg1, String arg2) voidsetCurrentHeaderElement(jakarta.xml.soap.SOAPElement currentElement) voidsetEncodingStyle(String arg0) voidsetIdAttribute(String name, boolean isId) voidsetIdAttributeNode(Attr idAttr, boolean isId) voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) voidsetMustUnderstand(boolean mustUnderstand) voidsetNodeValue(String arg0) voidsetParentElement(jakarta.xml.soap.SOAPElement arg0) voidvoidvoidsetTextContent(String textContent) setUserData(String key, Object data, UserDataHandler handler) voidtoString()voidMethods inherited from class com.sun.xml.wss.impl.misc.SOAPElementExtension
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
addAttributein 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:
addChildElementin 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:
addChildElementin 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:
addChildElementin 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:
addChildElementin 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:
addChildElementin 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:
addNamespaceDeclarationin interfacejakarta.xml.soap.SOAPElement- Throws:
jakarta.xml.soap.SOAPException
-
addTextNode
- Specified by:
addTextNodein interfacejakarta.xml.soap.SOAPElement- Throws:
jakarta.xml.soap.SOAPException
-
appendChild
- Specified by:
appendChildin 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:
detachNodein interfacejakarta.xml.soap.Node
-
equals
-
getAllAttributes
- Specified by:
getAllAttributesin interfacejakarta.xml.soap.SOAPElement
-
getAttribute
- Specified by:
getAttributein interfaceElement
-
getAttributeNode
- Specified by:
getAttributeNodein interfaceElement
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNSin interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNSin interfaceElement
-
getAttributes
- Specified by:
getAttributesin interfaceNode
-
getAttributeValue
- Specified by:
getAttributeValuein interfacejakarta.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElementsin interfacejakarta.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElementsin interfacejakarta.xml.soap.SOAPElement
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode
-
getElementName
public jakarta.xml.soap.Name getElementName()- Specified by:
getElementNamein interfacejakarta.xml.soap.SOAPElement
-
getElementsByTagName
- Specified by:
getElementsByTagNamein interfaceElement
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNSin interfaceElement
-
getEncodingStyle
- Specified by:
getEncodingStylein interfacejakarta.xml.soap.SOAPElement
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
getNamespacePrefixes
- Specified by:
getNamespacePrefixesin interfacejakarta.xml.soap.SOAPElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfacejakarta.xml.soap.SOAPElement
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode
-
getParentElement
public jakarta.xml.soap.SOAPElement getParentElement()- Specified by:
getParentElementin interfacejakarta.xml.soap.Node
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
getPrefix
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
getTagName
- Specified by:
getTagNamein interfaceElement
-
getValue
- Specified by:
getValuein interfacejakarta.xml.soap.Node
-
getVisibleNamespacePrefixes
- Specified by:
getVisibleNamespacePrefixesin interfacejakarta.xml.soap.SOAPElement
-
hasAttribute
- Specified by:
hasAttributein interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNSin interfaceElement
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodesin interfaceNode
-
hashCode
public int hashCode() -
insertBefore
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
isSupported
- Specified by:
isSupportedin interfaceNode
-
normalize
public void normalize() -
recycleNode
public void recycleNode()- Specified by:
recycleNodein interfacejakarta.xml.soap.Node
-
removeAttribute
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
removeAttribute
public boolean removeAttribute(jakarta.xml.soap.Name arg0) - Specified by:
removeAttributein interfacejakarta.xml.soap.SOAPElement
-
removeAttributeNode
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException
-
removeAttributeNS
- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException
-
removeChild
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
removeContents
public void removeContents()- Specified by:
removeContentsin interfacejakarta.xml.soap.SOAPElement
-
removeNamespaceDeclaration
- Specified by:
removeNamespaceDeclarationin interfacejakarta.xml.soap.SOAPElement
-
replaceChild
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
setAttribute
- Specified by:
setAttributein interfaceElement- Throws:
DOMException
-
setAttributeNode
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException
-
setAttributeNS
- Specified by:
setAttributeNSin interfaceElement- Throws:
DOMException
-
setEncodingStyle
- Specified by:
setEncodingStylein interfacejakarta.xml.soap.SOAPElement- Throws:
jakarta.xml.soap.SOAPException
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
setParentElement
public void setParentElement(jakarta.xml.soap.SOAPElement arg0) throws jakarta.xml.soap.SOAPException - Specified by:
setParentElementin interfacejakarta.xml.soap.Node- Throws:
jakarta.xml.soap.SOAPException
-
setPrefix
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
setValue
- Specified by:
setValuein interfacejakarta.xml.soap.Node
-
toString
-
getBaseURI
- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
setUserData
- Specified by:
setUserDatain interfaceNode
-
getUserData
- Specified by:
getUserDatain interfaceNode
-
setIdAttribute
- Specified by:
setIdAttributein interfaceElement- Throws:
DOMException
-
setIdAttributeNode
- 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
- Specified by:
getSchemaTypeInfoin interfaceElement
-
getAllAttributesAsQNames
- Specified by:
getAllAttributesAsQNamesin interfacejakarta.xml.soap.SOAPElement
-