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 TypeMethodDescriptionjavax.xml.soap.SOAPElementaddAttribute(javax.xml.soap.Name arg0, String arg1) javax.xml.soap.SOAPElementaddChildElement(String arg0) javax.xml.soap.SOAPElementaddChildElement(String arg0, String arg1) javax.xml.soap.SOAPElementaddChildElement(String arg0, String arg1, String arg2) javax.xml.soap.SOAPElementaddChildElement(javax.xml.soap.Name arg0) javax.xml.soap.SOAPElementaddChildElement(javax.xml.soap.SOAPElement arg0) javax.xml.soap.SOAPElementaddNamespaceDeclaration(String arg0, String arg1) javax.xml.soap.SOAPElementaddTextNode(String arg0) voidappendChild(SecurityHeaderBlock block) appendChild(Node arg0) cloneNode(boolean arg0) shortcompareDocumentPosition(Node other) voidbooleanjavax.xml.soap.SOAPElementgetAttribute(String arg0) getAttributeNode(String arg0) getAttributeNodeNS(String arg0, String arg1) getAttributeNS(String arg0, String arg1) getAttributeValue(javax.xml.soap.Name arg0) getChildElements(javax.xml.soap.Name arg0) getCurrentHeaderBlock(Class implType) Get the header block to be processed next.javax.xml.soap.SOAPElementjavax.xml.soap.SOAPElementjavax.xml.soap.NamegetElementsByTagName(String arg0) getElementsByTagNameNS(String arg0, String arg1) getFeature(String feature, String version) javax.xml.soap.SOAPElementgetNamespaceURI(String arg0) javax.xml.soap.SOAPElementshortjavax.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(javax.xml.soap.SOAPElement blockElement) booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) booleanbooleanisSameNode(Node other) booleanisSupported(String arg0, String arg1) lookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) javax.xml.soap.SOAPElementmakeUsable(javax.xml.soap.SOAPElement elem) voidvoidvoidremoveAttribute(String arg0) booleanremoveAttribute(javax.xml.soap.Name 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(javax.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(javax.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 javax.xml.soap.SOAPElement
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
Constructor Details
-
SecurityHeader
public SecurityHeader(javax.xml.soap.SOAPElement delegateHeader)
-
-
Method Details
-
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
- Throws:
com.sun.xml.wss.XWSSecurityException
-
insertHeaderBlockElement
public void insertHeaderBlockElement(javax.xml.soap.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 javax.xml.soap.SOAPElement getCurrentHeaderBlockElement() -
setCurrentHeaderElement
public void setCurrentHeaderElement(javax.xml.soap.SOAPElement currentElement) throws com.sun.xml.wss.XWSSecurityException - Throws:
com.sun.xml.wss.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
-
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
- 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
- Specified by:
addTextNodein interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
appendChild
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
makeUsable
public javax.xml.soap.SOAPElement makeUsable(javax.xml.soap.SOAPElement elem) throws com.sun.xml.wss.XWSSecurityException - Throws:
com.sun.xml.wss.XWSSecurityException
-
cloneNode
-
detachNode
public void detachNode()- Specified by:
detachNodein interfacejavax.xml.soap.Node
-
equals
-
getAllAttributes
- Specified by:
getAllAttributesin interfacejavax.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 interfacejavax.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElementsin interfacejavax.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElementsin interfacejavax.xml.soap.SOAPElement
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode
-
getElementName
public javax.xml.soap.Name getElementName()- Specified by:
getElementNamein interfacejavax.xml.soap.SOAPElement
-
getElementsByTagName
- Specified by:
getElementsByTagNamein interfaceElement
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNSin interfaceElement
-
getEncodingStyle
- Specified by:
getEncodingStylein interfacejavax.xml.soap.SOAPElement
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
getNamespacePrefixes
- Specified by:
getNamespacePrefixesin interfacejavax.xml.soap.SOAPElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfacejavax.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 javax.xml.soap.SOAPElement getParentElement()- Specified by:
getParentElementin interfacejavax.xml.soap.Node
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
getPrefix
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
getTagName
- Specified by:
getTagNamein interfaceElement
-
getValue
- Specified by:
getValuein interfacejavax.xml.soap.Node
-
getVisibleNamespacePrefixes
- Specified by:
getVisibleNamespacePrefixesin interfacejavax.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 interfacejavax.xml.soap.Node
-
removeAttribute
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
removeAttribute
public boolean removeAttribute(javax.xml.soap.Name arg0) - Specified by:
removeAttributein interfacejavax.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 interfacejavax.xml.soap.SOAPElement
-
removeNamespaceDeclaration
- Specified by:
removeNamespaceDeclarationin interfacejavax.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 interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
setNodeValue
- 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
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
setValue
- Specified by:
setValuein interfacejavax.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 interfacejavax.xml.soap.SOAPElement
-