Package com.sun.xml.wss.core
Class EncryptedHeaderBlock
java.lang.Object
com.sun.xml.wss.impl.misc.SOAPElementExtension
com.sun.xml.wss.core.EncryptedHeaderBlock
public class EncryptedHeaderBlock
extends SOAPElementExtension
implements jakarta.xml.soap.SOAPElement
Corresponds to Schema definition for EncryptedData.
Schema definition for EncryptedData is as follows:
<xmp>
<element name='EncryptedHeader' type='wsse11:EncryptedHeaderType'/>
<complexType name='EncryptedHeaderType'>
<element name='EncryptedData'>
<complexContent>
<extension base='xenc:EncryptedType'/>
</complexContent>
</element>
</complexType>
</xmp>
- Author:
- Mayank Mishra
-
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
ConstructorDescriptionEncryptedHeaderBlock
(jakarta.xml.soap.SOAPElement delegateElement) Creates a new instance of EncryptedHeaderBlock -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPElement
addAttribute
(jakarta.xml.soap.Name name, String string) jakarta.xml.soap.SOAPElement
addChildElement
(jakarta.xml.soap.Name name) jakarta.xml.soap.SOAPElement
addChildElement
(jakarta.xml.soap.SOAPElement sOAPElement) jakarta.xml.soap.SOAPElement
addChildElement
(String string) jakarta.xml.soap.SOAPElement
addChildElement
(String string, String string0) jakarta.xml.soap.SOAPElement
addChildElement
(String string, String string0, String string1) jakarta.xml.soap.SOAPElement
addNamespaceDeclaration
(String string, String string0) jakarta.xml.soap.SOAPElement
addTextNode
(String string) appendChild
(Node newChild) cloneNode
(boolean deep) short
compareDocumentPosition
(Node other) void
copyAttributes
(SecurableSoapMessage secureMsg, SecurityHeader _secHeader) void
jakarta.xml.soap.SOAPElement
getAttribute
(String name) getAttributeNode
(String name) getAttributeNodeNS
(String namespaceURI, String localName) getAttributeNS
(String namespaceURI, String localName) getAttributeValue
(jakarta.xml.soap.Name name) getChildElements
(jakarta.xml.soap.Name name) jakarta.xml.soap.Name
getElementsByTagName
(String name) getElementsByTagNameNS
(String namespaceURI, String localName) getFeature
(String feature, String version) getId()
Returns null if id attr is not presentReturns null if MimeType attr is not presentgetNamespaceURI
(String string) short
jakarta.xml.soap.SOAPElement
protected static jakarta.xml.soap.SOAPFactory
getType()
Returns null if Type attr is not presentgetUserData
(String key) getValue()
boolean
hasAttribute
(String name) boolean
hasAttributeNS
(String namespaceURI, String localName) boolean
boolean
insertBefore
(Node newChild, Node refChild) boolean
isBSP()
void
isBSP
(boolean flag) boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node arg) boolean
isSameNode
(Node other) boolean
isSupported
(String feature, String version) lookupNamespaceURI
(String prefix) lookupPrefix
(String namespaceURI) void
void
boolean
removeAttribute
(jakarta.xml.soap.Name name) void
removeAttribute
(String name) removeAttributeNode
(Attr oldAttr) void
removeAttributeNS
(String namespaceURI, String localName) removeChild
(Node oldChild) void
boolean
removeNamespaceDeclaration
(String string) replaceChild
(Node newChild, Node oldChild) void
setAttribute
(String name, String value) setAttributeNode
(Attr newAttr) setAttributeNodeNS
(Attr newAttr) void
setAttributeNS
(String namespaceURI, String qualifiedName, String value) void
setEncodingStyle
(String string) void
void
setIdAttribute
(String name, boolean isId) void
setIdAttributeNode
(Attr idAttr, boolean isId) void
setIdAttributeNS
(String namespaceURI, String localName, boolean isId) void
setMimeType
(String mimeType) void
setNodeValue
(String nodeValue) void
setParentElement
(jakarta.xml.soap.SOAPElement sOAPElement) void
protected void
setSOAPElement
(jakarta.xml.soap.SOAPElement delegateElement) void
setTextContent
(String textContent) void
setUserData
(String key, Object data, UserDataHandler handler) void
protected void
setWsuIdAttr
(Element element, String wsuId) 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.xml.soap.SOAPElement
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
Field Details
-
delegateElement
protected jakarta.xml.soap.SOAPElement delegateElement
-
-
Constructor Details
-
EncryptedHeaderBlock
- Throws:
XWSSecurityException
-
EncryptedHeaderBlock
public EncryptedHeaderBlock(jakarta.xml.soap.SOAPElement delegateElement) throws XWSSecurityException Creates a new instance of EncryptedHeaderBlock- Throws:
XWSSecurityException
-
-
Method Details
-
setSOAPElement
protected void setSOAPElement(jakarta.xml.soap.SOAPElement delegateElement) -
copyAttributes
public void copyAttributes(SecurableSoapMessage secureMsg, SecurityHeader _secHeader) throws XWSSecurityException - Throws:
XWSSecurityException
-
setWsuIdAttr
-
getSoapFactory
protected static jakarta.xml.soap.SOAPFactory getSoapFactory() -
getId
Returns null if id attr is not present -
setId
-
getType
Returns null if Type attr is not present -
setType
-
getMimeType
Returns null if MimeType attr is not present -
setMimeType
-
getAsSoapElement
public jakarta.xml.soap.SOAPElement getAsSoapElement() -
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(jakarta.xml.soap.Name name) 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 string) 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 string, String string0) 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 string, String string0, String string1) 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 sOAPElement) throws jakarta.xml.soap.SOAPException - Specified by:
addChildElement
in interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
removeContents
public void removeContents()- Specified by:
removeContents
in interfacejakarta.xml.soap.SOAPElement
-
addTextNode
public jakarta.xml.soap.SOAPElement addTextNode(String string) throws jakarta.xml.soap.SOAPException - Specified by:
addTextNode
in interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
addAttribute
public jakarta.xml.soap.SOAPElement addAttribute(jakarta.xml.soap.Name name, String string) throws jakarta.xml.soap.SOAPException - Specified by:
addAttribute
in interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
addNamespaceDeclaration
public jakarta.xml.soap.SOAPElement addNamespaceDeclaration(String string, String string0) throws jakarta.xml.soap.SOAPException - Specified by:
addNamespaceDeclaration
in interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
getAttributeValue
- Specified by:
getAttributeValue
in interfacejakarta.xml.soap.SOAPElement
-
getAllAttributes
- Specified by:
getAllAttributes
in interfacejakarta.xml.soap.SOAPElement
-
getAllAttributesAsQNames
- Specified by:
getAllAttributesAsQNames
in interfacejakarta.xml.soap.SOAPElement
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfacejakarta.xml.soap.SOAPElement
-
getNamespacePrefixes
- Specified by:
getNamespacePrefixes
in interfacejakarta.xml.soap.SOAPElement
-
getVisibleNamespacePrefixes
- Specified by:
getVisibleNamespacePrefixes
in interfacejakarta.xml.soap.SOAPElement
-
getElementName
public jakarta.xml.soap.Name getElementName()- Specified by:
getElementName
in interfacejakarta.xml.soap.SOAPElement
-
removeAttribute
public boolean removeAttribute(jakarta.xml.soap.Name name) - Specified by:
removeAttribute
in interfacejakarta.xml.soap.SOAPElement
-
removeNamespaceDeclaration
- Specified by:
removeNamespaceDeclaration
in interfacejakarta.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElements
in interfacejakarta.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElements
in interfacejakarta.xml.soap.SOAPElement
-
setEncodingStyle
- Specified by:
setEncodingStyle
in interfacejakarta.xml.soap.SOAPElement
- Throws:
jakarta.xml.soap.SOAPException
-
getEncodingStyle
- Specified by:
getEncodingStyle
in interfacejakarta.xml.soap.SOAPElement
-
getValue
- Specified by:
getValue
in interfacejakarta.xml.soap.Node
-
setValue
- Specified by:
setValue
in interfacejakarta.xml.soap.Node
-
setParentElement
public void setParentElement(jakarta.xml.soap.SOAPElement sOAPElement) throws jakarta.xml.soap.SOAPException - Specified by:
setParentElement
in interfacejakarta.xml.soap.Node
- Throws:
jakarta.xml.soap.SOAPException
-
getParentElement
public jakarta.xml.soap.SOAPElement getParentElement()- Specified by:
getParentElement
in interfacejakarta.xml.soap.Node
-
detachNode
public void detachNode()- Specified by:
detachNode
in interfacejakarta.xml.soap.Node
-
recycleNode
public void recycleNode()- Specified by:
recycleNode
in interfacejakarta.xml.soap.Node
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
-
getParentNode
- Specified by:
getParentNode
in interfaceNode
-
getChildNodes
- Specified by:
getChildNodes
in interfaceNode
-
getFirstChild
- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
- Specified by:
getLastChild
in interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSibling
in interfaceNode
-
getNextSibling
- Specified by:
getNextSibling
in interfaceNode
-
getAttributes
- Specified by:
getAttributes
in interfaceNode
-
getOwnerDocument
- Specified by:
getOwnerDocument
in interfaceNode
-
insertBefore
- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
replaceChild
- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
removeChild
- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
appendChild
- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodes
in interfaceNode
-
cloneNode
-
normalize
public void normalize() -
isSupported
- Specified by:
isSupported
in interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNode
-
getPrefix
-
setPrefix
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
getLocalName
- Specified by:
getLocalName
in interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributes
in interfaceNode
-
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
-
getTagName
- Specified by:
getTagName
in interfaceElement
-
getAttribute
- Specified by:
getAttribute
in interfaceElement
-
setAttribute
- Specified by:
setAttribute
in interfaceElement
- Throws:
DOMException
-
removeAttribute
- Specified by:
removeAttribute
in interfaceElement
- Throws:
DOMException
-
getAttributeNode
- Specified by:
getAttributeNode
in interfaceElement
-
setAttributeNode
- Specified by:
setAttributeNode
in interfaceElement
- Throws:
DOMException
-
removeAttributeNode
- Specified by:
removeAttributeNode
in interfaceElement
- Throws:
DOMException
-
getElementsByTagName
- Specified by:
getElementsByTagName
in interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNS
in interfaceElement
- Throws:
DOMException
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException - Specified by:
setAttributeNS
in interfaceElement
- Throws:
DOMException
-
removeAttributeNS
- Specified by:
removeAttributeNS
in interfaceElement
- Throws:
DOMException
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNS
in interfaceElement
- Throws:
DOMException
-
hasAttribute
- Specified by:
hasAttribute
in interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNS
in interfaceElement
- Throws:
DOMException
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfo
in interfaceElement
-
setIdAttribute
- Specified by:
setIdAttribute
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException - Specified by:
setIdAttributeNS
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNode
- Specified by:
setIdAttributeNode
in interfaceElement
- Throws:
DOMException
-
isBSP
public void isBSP(boolean flag) -
isBSP
public boolean isBSP()
-