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 javax.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
FieldsFields 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
ConstructorsConstructorDescriptionEncryptedHeaderBlock(javax.xml.soap.SOAPElement delegateElement) Creates a new instance of EncryptedHeaderBlock -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.soap.SOAPElementaddAttribute(javax.xml.soap.Name name, String string) javax.xml.soap.SOAPElementaddChildElement(String string) javax.xml.soap.SOAPElementaddChildElement(String string, String string0) javax.xml.soap.SOAPElementaddChildElement(String string, String string0, String string1) javax.xml.soap.SOAPElementaddChildElement(javax.xml.soap.Name name) javax.xml.soap.SOAPElementaddChildElement(javax.xml.soap.SOAPElement sOAPElement) javax.xml.soap.SOAPElementaddNamespaceDeclaration(String string, String string0) javax.xml.soap.SOAPElementaddTextNode(String string) appendChild(Node newChild) cloneNode(boolean deep) shortcompareDocumentPosition(Node other) voidcopyAttributes(SecurableSoapMessage secureMsg, SecurityHeader _secHeader) voidjavax.xml.soap.SOAPElementgetAttribute(String name) getAttributeNode(String name) getAttributeNodeNS(String namespaceURI, String localName) getAttributeNS(String namespaceURI, String localName) getAttributeValue(javax.xml.soap.Name name) getChildElements(javax.xml.soap.Name name) javax.xml.soap.NamegetElementsByTagName(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) shortjavax.xml.soap.SOAPElementprotected static javax.xml.soap.SOAPFactorygetType()Returns null if Type attr is not presentgetUserData(String key) getValue()booleanhasAttribute(String name) booleanhasAttributeNS(String namespaceURI, String localName) booleanbooleaninsertBefore(Node newChild, Node refChild) booleanisBSP()voidisBSP(boolean flag) booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) booleanisSameNode(Node other) booleanisSupported(String feature, String version) lookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) voidvoidvoidremoveAttribute(String name) booleanremoveAttribute(javax.xml.soap.Name name) removeAttributeNode(Attr oldAttr) voidremoveAttributeNS(String namespaceURI, String localName) removeChild(Node oldChild) voidbooleanremoveNamespaceDeclaration(String string) replaceChild(Node newChild, Node oldChild) voidsetAttribute(String name, String value) setAttributeNode(Attr newAttr) setAttributeNodeNS(Attr newAttr) voidsetAttributeNS(String namespaceURI, String qualifiedName, String value) voidsetEncodingStyle(String string) voidvoidsetIdAttribute(String name, boolean isId) voidsetIdAttributeNode(Attr idAttr, boolean isId) voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) voidsetMimeType(String mimeType) voidsetNodeValue(String nodeValue) voidsetParentElement(javax.xml.soap.SOAPElement sOAPElement) voidprotected voidsetSOAPElement(javax.xml.soap.SOAPElement delegateElement) voidsetTextContent(String textContent) voidsetUserData(String key, Object data, UserDataHandler handler) voidprotected voidsetWsuIdAttr(Element element, String wsuId) Methods 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.soap.SOAPElement
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
Field Details
-
delegateElement
protected javax.xml.soap.SOAPElement delegateElement
-
-
Constructor Details
-
EncryptedHeaderBlock
- Throws:
com.sun.xml.wss.XWSSecurityException
-
EncryptedHeaderBlock
public EncryptedHeaderBlock(javax.xml.soap.SOAPElement delegateElement) throws com.sun.xml.wss.XWSSecurityException Creates a new instance of EncryptedHeaderBlock- Throws:
com.sun.xml.wss.XWSSecurityException
-
-
Method Details
-
setSOAPElement
protected void setSOAPElement(javax.xml.soap.SOAPElement delegateElement) -
copyAttributes
public void copyAttributes(SecurableSoapMessage secureMsg, SecurityHeader _secHeader) throws com.sun.xml.wss.XWSSecurityException - Throws:
com.sun.xml.wss.XWSSecurityException
-
setWsuIdAttr
-
getSoapFactory
protected static javax.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 javax.xml.soap.SOAPElement getAsSoapElement() throws com.sun.xml.wss.XWSSecurityException- Throws:
com.sun.xml.wss.XWSSecurityException
-
addChildElement
public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name) 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 string) 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 string, String string0) 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 string, String string0, String string1) 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 sOAPElement) throws javax.xml.soap.SOAPException - Specified by:
addChildElementin interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
removeContents
public void removeContents()- Specified by:
removeContentsin interfacejavax.xml.soap.SOAPElement
-
addTextNode
- Specified by:
addTextNodein interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
addAttribute
public javax.xml.soap.SOAPElement addAttribute(javax.xml.soap.Name name, String string) throws javax.xml.soap.SOAPException - Specified by:
addAttributein interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
addNamespaceDeclaration
public javax.xml.soap.SOAPElement addNamespaceDeclaration(String string, String string0) throws javax.xml.soap.SOAPException - Specified by:
addNamespaceDeclarationin interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
getAttributeValue
- Specified by:
getAttributeValuein interfacejavax.xml.soap.SOAPElement
-
getAllAttributes
- Specified by:
getAllAttributesin interfacejavax.xml.soap.SOAPElement
-
getAllAttributesAsQNames
- Specified by:
getAllAttributesAsQNamesin interfacejavax.xml.soap.SOAPElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfacejavax.xml.soap.SOAPElement
-
getNamespacePrefixes
- Specified by:
getNamespacePrefixesin interfacejavax.xml.soap.SOAPElement
-
getVisibleNamespacePrefixes
- Specified by:
getVisibleNamespacePrefixesin interfacejavax.xml.soap.SOAPElement
-
getElementName
public javax.xml.soap.Name getElementName()- Specified by:
getElementNamein interfacejavax.xml.soap.SOAPElement
-
removeAttribute
public boolean removeAttribute(javax.xml.soap.Name name) - Specified by:
removeAttributein interfacejavax.xml.soap.SOAPElement
-
removeNamespaceDeclaration
- Specified by:
removeNamespaceDeclarationin interfacejavax.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElementsin interfacejavax.xml.soap.SOAPElement
-
getChildElements
- Specified by:
getChildElementsin interfacejavax.xml.soap.SOAPElement
-
setEncodingStyle
- Specified by:
setEncodingStylein interfacejavax.xml.soap.SOAPElement- Throws:
javax.xml.soap.SOAPException
-
getEncodingStyle
- Specified by:
getEncodingStylein interfacejavax.xml.soap.SOAPElement
-
getValue
- Specified by:
getValuein interfacejavax.xml.soap.Node
-
setValue
- Specified by:
setValuein interfacejavax.xml.soap.Node
-
setParentElement
public void setParentElement(javax.xml.soap.SOAPElement sOAPElement) throws javax.xml.soap.SOAPException - Specified by:
setParentElementin interfacejavax.xml.soap.Node- Throws:
javax.xml.soap.SOAPException
-
getParentElement
public javax.xml.soap.SOAPElement getParentElement()- Specified by:
getParentElementin interfacejavax.xml.soap.Node
-
detachNode
public void detachNode()- Specified by:
detachNodein interfacejavax.xml.soap.Node
-
recycleNode
public void recycleNode()- Specified by:
recycleNodein interfacejavax.xml.soap.Node
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode
-
getAttributes
- Specified by:
getAttributesin interfaceNode
-
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode
-
insertBefore
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
replaceChild
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
removeChild
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
appendChild
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodesin interfaceNode
-
cloneNode
-
normalize
public void normalize() -
isSupported
- Specified by:
isSupportedin interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getPrefix
-
setPrefix
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
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
-
getTagName
- Specified by:
getTagNamein interfaceElement
-
getAttribute
- Specified by:
getAttributein interfaceElement
-
setAttribute
- Specified by:
setAttributein interfaceElement- Throws:
DOMException
-
removeAttribute
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
getAttributeNode
- Specified by:
getAttributeNodein interfaceElement
-
setAttributeNode
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException
-
removeAttributeNode
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException
-
getElementsByTagName
- Specified by:
getElementsByTagNamein interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNSin interfaceElement- Throws:
DOMException
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException - Specified by:
setAttributeNSin interfaceElement- Throws:
DOMException
-
removeAttributeNS
- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNSin interfaceElement- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNSin interfaceElement- Throws:
DOMException
-
hasAttribute
- Specified by:
hasAttributein interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNSin interfaceElement- Throws:
DOMException
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfoin interfaceElement
-
setIdAttribute
- Specified by:
setIdAttributein interfaceElement- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException - Specified by:
setIdAttributeNSin interfaceElement- Throws:
DOMException
-
setIdAttributeNode
- Specified by:
setIdAttributeNodein interfaceElement- Throws:
DOMException
-
isBSP
public void isBSP(boolean flag) -
isBSP
public boolean isBSP()
-