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 Modifier and Type Field Description protected jakarta.xml.soap.SOAPElementdelegateElement-
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 Constructor Description EncryptedHeaderBlock(jakarta.xml.soap.SOAPElement delegateElement)Creates a new instance of EncryptedHeaderBlockEncryptedHeaderBlock(Document doc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.xml.soap.SOAPElementaddAttribute(jakarta.xml.soap.Name name, String string)jakarta.xml.soap.SOAPElementaddChildElement(jakarta.xml.soap.Name name)jakarta.xml.soap.SOAPElementaddChildElement(jakarta.xml.soap.SOAPElement sOAPElement)jakarta.xml.soap.SOAPElementaddChildElement(String string)jakarta.xml.soap.SOAPElementaddChildElement(String string, String string0)jakarta.xml.soap.SOAPElementaddChildElement(String string, String string0, String string1)jakarta.xml.soap.SOAPElementaddNamespaceDeclaration(String string, String string0)jakarta.xml.soap.SOAPElementaddTextNode(String string)NodeappendChild(Node newChild)NodecloneNode(boolean deep)shortcompareDocumentPosition(Node other)voidcopyAttributes(SecurableSoapMessage secureMsg, SecurityHeader _secHeader)voiddetachNode()IteratorgetAllAttributes()IteratorgetAllAttributesAsQNames()jakarta.xml.soap.SOAPElementgetAsSoapElement()StringgetAttribute(String name)AttrgetAttributeNode(String name)AttrgetAttributeNodeNS(String namespaceURI, String localName)StringgetAttributeNS(String namespaceURI, String localName)NamedNodeMapgetAttributes()StringgetAttributeValue(jakarta.xml.soap.Name name)StringgetBaseURI()IteratorgetChildElements()IteratorgetChildElements(jakarta.xml.soap.Name name)NodeListgetChildNodes()jakarta.xml.soap.NamegetElementName()NodeListgetElementsByTagName(String name)NodeListgetElementsByTagNameNS(String namespaceURI, String localName)StringgetEncodingStyle()ObjectgetFeature(String feature, String version)NodegetFirstChild()StringgetId()Returns null if id attr is not presentNodegetLastChild()StringgetLocalName()StringgetMimeType()Returns null if MimeType attr is not presentIteratorgetNamespacePrefixes()StringgetNamespaceURI()StringgetNamespaceURI(String string)NodegetNextSibling()StringgetNodeName()shortgetNodeType()StringgetNodeValue()DocumentgetOwnerDocument()jakarta.xml.soap.SOAPElementgetParentElement()NodegetParentNode()StringgetPrefix()NodegetPreviousSibling()TypeInfogetSchemaTypeInfo()protected static jakarta.xml.soap.SOAPFactorygetSoapFactory()StringgetTagName()StringgetTextContent()StringgetType()Returns null if Type attr is not presentObjectgetUserData(String key)StringgetValue()IteratorgetVisibleNamespacePrefixes()booleanhasAttribute(String name)booleanhasAttributeNS(String namespaceURI, String localName)booleanhasAttributes()booleanhasChildNodes()NodeinsertBefore(Node newChild, Node refChild)booleanisBSP()voidisBSP(boolean flag)booleanisDefaultNamespace(String namespaceURI)booleanisEqualNode(Node arg)booleanisSameNode(Node other)booleanisSupported(String feature, String version)StringlookupNamespaceURI(String prefix)StringlookupPrefix(String namespaceURI)voidnormalize()voidrecycleNode()booleanremoveAttribute(jakarta.xml.soap.Name name)voidremoveAttribute(String name)AttrremoveAttributeNode(Attr oldAttr)voidremoveAttributeNS(String namespaceURI, String localName)NoderemoveChild(Node oldChild)voidremoveContents()booleanremoveNamespaceDeclaration(String string)NodereplaceChild(Node newChild, Node oldChild)voidsetAttribute(String name, String value)AttrsetAttributeNode(Attr newAttr)AttrsetAttributeNodeNS(Attr newAttr)voidsetAttributeNS(String namespaceURI, String qualifiedName, String value)voidsetEncodingStyle(String string)voidsetId(String id)voidsetIdAttribute(String name, boolean isId)voidsetIdAttributeNode(Attr idAttr, boolean isId)voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId)voidsetMimeType(String mimeType)voidsetNodeValue(String nodeValue)voidsetParentElement(jakarta.xml.soap.SOAPElement sOAPElement)voidsetPrefix(String prefix)protected voidsetSOAPElement(jakarta.xml.soap.SOAPElement delegateElement)voidsetTextContent(String textContent)voidsetType(String type)ObjectsetUserData(String key, Object data, UserDataHandler handler)voidsetValue(String string)protected voidsetWsuIdAttr(Element element, String wsuId)-
Methods inherited from class com.sun.xml.wss.impl.misc.SOAPElementExtension
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
-
-
-
-
Constructor Detail
-
EncryptedHeaderBlock
public EncryptedHeaderBlock(Document doc) throws XWSSecurityException
- Throws:
XWSSecurityException
-
EncryptedHeaderBlock
public EncryptedHeaderBlock(jakarta.xml.soap.SOAPElement delegateElement) throws XWSSecurityExceptionCreates a new instance of EncryptedHeaderBlock- Throws:
XWSSecurityException
-
-
Method Detail
-
setSOAPElement
protected void setSOAPElement(jakarta.xml.soap.SOAPElement delegateElement)
-
copyAttributes
public void copyAttributes(SecurableSoapMessage secureMsg, SecurityHeader _secHeader) throws XWSSecurityException
- Throws:
XWSSecurityException
-
getSoapFactory
protected static jakarta.xml.soap.SOAPFactory getSoapFactory()
-
getId
public String getId()
Returns null if id attr is not present
-
setId
public void setId(String id)
-
getType
public String getType()
Returns null if Type attr is not present
-
setType
public void setType(String type)
-
getMimeType
public String getMimeType()
Returns null if MimeType attr is not present
-
setMimeType
public void setMimeType(String mimeType)
-
getAsSoapElement
public jakarta.xml.soap.SOAPElement getAsSoapElement() throws XWSSecurityException- Throws:
XWSSecurityException
-
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(jakarta.xml.soap.Name name) 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 string) 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 string, String string0) 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 string, String string0, String string1) 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 sOAPElement) throws jakarta.xml.soap.SOAPException- Specified by:
addChildElementin interfacejakarta.xml.soap.SOAPElement- Throws:
jakarta.xml.soap.SOAPException
-
removeContents
public void removeContents()
- Specified by:
removeContentsin interfacejakarta.xml.soap.SOAPElement
-
addTextNode
public jakarta.xml.soap.SOAPElement addTextNode(String string) throws jakarta.xml.soap.SOAPException
- Specified by:
addTextNodein 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:
addAttributein 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:
addNamespaceDeclarationin interfacejakarta.xml.soap.SOAPElement- Throws:
jakarta.xml.soap.SOAPException
-
getAttributeValue
public String getAttributeValue(jakarta.xml.soap.Name name)
- Specified by:
getAttributeValuein interfacejakarta.xml.soap.SOAPElement
-
getAllAttributes
public Iterator getAllAttributes()
- Specified by:
getAllAttributesin interfacejakarta.xml.soap.SOAPElement
-
getAllAttributesAsQNames
public Iterator getAllAttributesAsQNames()
- Specified by:
getAllAttributesAsQNamesin interfacejakarta.xml.soap.SOAPElement
-
getNamespaceURI
public String getNamespaceURI(String string)
- Specified by:
getNamespaceURIin interfacejakarta.xml.soap.SOAPElement
-
getNamespacePrefixes
public Iterator getNamespacePrefixes()
- Specified by:
getNamespacePrefixesin interfacejakarta.xml.soap.SOAPElement
-
getVisibleNamespacePrefixes
public Iterator getVisibleNamespacePrefixes()
- Specified by:
getVisibleNamespacePrefixesin interfacejakarta.xml.soap.SOAPElement
-
getElementName
public jakarta.xml.soap.Name getElementName()
- Specified by:
getElementNamein interfacejakarta.xml.soap.SOAPElement
-
removeAttribute
public boolean removeAttribute(jakarta.xml.soap.Name name)
- Specified by:
removeAttributein interfacejakarta.xml.soap.SOAPElement
-
removeNamespaceDeclaration
public boolean removeNamespaceDeclaration(String string)
- Specified by:
removeNamespaceDeclarationin interfacejakarta.xml.soap.SOAPElement
-
getChildElements
public Iterator getChildElements()
- Specified by:
getChildElementsin interfacejakarta.xml.soap.SOAPElement
-
getChildElements
public Iterator getChildElements(jakarta.xml.soap.Name name)
- Specified by:
getChildElementsin interfacejakarta.xml.soap.SOAPElement
-
setEncodingStyle
public void setEncodingStyle(String string) throws jakarta.xml.soap.SOAPException
- Specified by:
setEncodingStylein interfacejakarta.xml.soap.SOAPElement- Throws:
jakarta.xml.soap.SOAPException
-
getEncodingStyle
public String getEncodingStyle()
- Specified by:
getEncodingStylein interfacejakarta.xml.soap.SOAPElement
-
getValue
public String getValue()
- Specified by:
getValuein interfacejakarta.xml.soap.Node
-
setValue
public void setValue(String string)
- Specified by:
setValuein interfacejakarta.xml.soap.Node
-
setParentElement
public void setParentElement(jakarta.xml.soap.SOAPElement sOAPElement) throws jakarta.xml.soap.SOAPException- Specified by:
setParentElementin interfacejakarta.xml.soap.Node- Throws:
jakarta.xml.soap.SOAPException
-
getParentElement
public jakarta.xml.soap.SOAPElement getParentElement()
- Specified by:
getParentElementin interfacejakarta.xml.soap.Node
-
detachNode
public void detachNode()
- Specified by:
detachNodein interfacejakarta.xml.soap.Node
-
recycleNode
public void recycleNode()
- Specified by:
recycleNodein interfacejakarta.xml.soap.Node
-
getNodeName
public String getNodeName()
- Specified by:
getNodeNamein interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
setNodeValue
public void setNodeValue(String nodeValue) throws DOMException
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceNode
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNodein interfaceNode
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChildin interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceNode
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSiblingin interfaceNode
-
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributesin interfaceNode
-
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocumentin interfaceNode
-
insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
removeChild
public Node removeChild(Node oldChild) throws DOMException
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
appendChild
public Node appendChild(Node newChild) throws DOMException
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceNode
-
isSupported
public boolean isSupported(String feature, String version)
- Specified by:
isSupportedin interfaceNode
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode
-
setPrefix
public void setPrefix(String prefix) throws DOMException
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceNode
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributesin interfaceNode
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
public void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
public boolean isEqualNode(Node arg)
- Specified by:
isEqualNodein interfaceNode
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeaturein interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserDatain interfaceNode
-
getUserData
public Object getUserData(String key)
- Specified by:
getUserDatain interfaceNode
-
getTagName
public String getTagName()
- Specified by:
getTagNamein interfaceElement
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttributein interfaceElement
-
setAttribute
public void setAttribute(String name, String value) throws DOMException
- Specified by:
setAttributein interfaceElement- Throws:
DOMException
-
removeAttribute
public void removeAttribute(String name) throws DOMException
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
getAttributeNode
public Attr getAttributeNode(String name)
- Specified by:
getAttributeNodein interfaceElement
-
setAttributeNode
public Attr setAttributeNode(Attr newAttr) throws DOMException
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException
-
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException
-
getElementsByTagName
public NodeList getElementsByTagName(String name)
- Specified by:
getElementsByTagNamein interfaceElement
-
getAttributeNS
public String getAttributeNS(String namespaceURI, String localName) throws DOMException
- 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
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException
-
getAttributeNodeNS
public Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException
- Specified by:
getAttributeNodeNSin interfaceElement- Throws:
DOMException
-
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException
- Specified by:
getElementsByTagNameNSin interfaceElement- Throws:
DOMException
-
hasAttribute
public boolean hasAttribute(String name)
- Specified by:
hasAttributein interfaceElement
-
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
- Specified by:
hasAttributeNSin interfaceElement- Throws:
DOMException
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfoin interfaceElement
-
setIdAttribute
public void setIdAttribute(String name, boolean isId) throws DOMException
- 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
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
- Specified by:
setIdAttributeNodein interfaceElement- Throws:
DOMException
-
isBSP
public void isBSP(boolean flag)
-
isBSP
public boolean isBSP()
-
-