com.sun.xml.wss.core
Class SecurityHeader
java.lang.Object
com.sun.xml.wss.impl.misc.SOAPElementExtension
com.sun.xml.wss.core.SecurityHeader
- All Implemented Interfaces:
- SOAPElement, Element, Node
public class SecurityHeader
- extends SOAPElementExtension
- implements SOAPElement
- Author:
- XWS-Security Development Team
| 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 |
|
Method Summary |
SOAPElement |
addAttribute(Name arg0,
String arg1)
|
SOAPElement |
addChildElement(Name arg0)
|
SOAPElement |
addChildElement(SOAPElement arg0)
|
SOAPElement |
addChildElement(String arg0)
|
SOAPElement |
addChildElement(String arg0,
String arg1)
|
SOAPElement |
addChildElement(String arg0,
String arg1,
String arg2)
|
SOAPElement |
addNamespaceDeclaration(String arg0,
String arg1)
|
SOAPElement |
addTextNode(String arg0)
|
Node |
appendChild(Node arg0)
|
void |
appendChild(SecurityHeaderBlock block)
|
Node |
cloneNode(boolean arg0)
|
short |
compareDocumentPosition(Node other)
|
void |
detachNode()
|
boolean |
equals(Object obj)
|
Iterator |
getAllAttributes()
|
Iterator |
getAllAttributesAsQNames()
|
SOAPElement |
getAsSoapElement()
|
String |
getAttribute(String arg0)
|
Attr |
getAttributeNode(String arg0)
|
Attr |
getAttributeNodeNS(String arg0,
String arg1)
|
String |
getAttributeNS(String arg0,
String arg1)
|
NamedNodeMap |
getAttributes()
|
String |
getAttributeValue(Name arg0)
|
String |
getBaseURI()
|
Iterator |
getChildElements()
|
Iterator |
getChildElements(Name arg0)
|
NodeList |
getChildNodes()
|
SecurityHeaderBlock |
getCurrentHeaderBlock(Class implType)
Get the header block to be processed next. |
SOAPElement |
getCurrentHeaderBlockElement()
|
SOAPElement |
getCurrentHeaderElement()
|
Name |
getElementName()
|
NodeList |
getElementsByTagName(String arg0)
|
NodeList |
getElementsByTagNameNS(String arg0,
String arg1)
|
String |
getEncodingStyle()
|
Object |
getFeature(String feature,
String version)
|
Node |
getFirstChild()
|
SOAPElement |
getFirstChildElement()
|
Node |
getLastChild()
|
String |
getLocalName()
|
Iterator |
getNamespacePrefixes()
|
String |
getNamespaceURI()
|
String |
getNamespaceURI(String arg0)
|
Node |
getNextSibling()
|
SOAPElement |
getNextSiblingOfTimestamp()
|
String |
getNodeName()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Document |
getOwnerDocument()
|
SOAPElement |
getParentElement()
|
Node |
getParentNode()
|
String |
getPrefix()
|
Node |
getPreviousSibling()
|
String |
getRole()
|
TypeInfo |
getSchemaTypeInfo()
|
String |
getTagName()
|
String |
getTextContent()
|
Object |
getUserData(String key)
|
String |
getValue()
|
Iterator |
getVisibleNamespacePrefixes()
|
boolean |
hasAttribute(String arg0)
|
boolean |
hasAttributeNS(String arg0,
String arg1)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
int |
hashCode()
|
Node |
insertBefore(Node arg0,
Node arg1)
|
void |
insertBefore(SecurityHeaderBlock block,
Node elem)
|
void |
insertHeaderBlock(SecurityHeaderBlock block)
Inserts the header block at the top of the security header, i.e,
the block becomes the first child element of the security header. |
void |
insertHeaderBlockElement(SOAPElement blockElement)
|
boolean |
isDefaultNamespace(String namespaceURI)
|
boolean |
isEqualNode(Node arg)
|
boolean |
isMustUnderstand()
|
boolean |
isSameNode(Node other)
|
boolean |
isSupported(String arg0,
String arg1)
|
String |
lookupNamespaceURI(String prefix)
|
String |
lookupPrefix(String namespaceURI)
|
SOAPElement |
makeUsable(SOAPElement elem)
|
void |
normalize()
|
void |
recycleNode()
|
boolean |
removeAttribute(Name arg0)
|
void |
removeAttribute(String arg0)
|
Attr |
removeAttributeNode(Attr arg0)
|
void |
removeAttributeNS(String arg0,
String arg1)
|
Node |
removeChild(Node arg0)
|
void |
removeContents()
|
boolean |
removeNamespaceDeclaration(String arg0)
|
Node |
replaceChild(Node arg0,
Node arg1)
|
void |
setAttribute(String arg0,
String arg1)
|
Attr |
setAttributeNode(Attr arg0)
|
Attr |
setAttributeNodeNS(Attr arg0)
|
void |
setAttributeNS(String arg0,
String arg1,
String arg2)
|
void |
setCurrentHeaderElement(SOAPElement currentElement)
|
void |
setEncodingStyle(String arg0)
|
void |
setIdAttribute(String name,
boolean isId)
|
void |
setIdAttributeNode(Attr idAttr,
boolean isId)
|
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
|
void |
setMustUnderstand(boolean mustUnderstand)
|
void |
setNodeValue(String arg0)
|
void |
setParentElement(SOAPElement arg0)
|
void |
setPrefix(String arg0)
|
void |
setRole(String roleURI)
|
void |
setTextContent(String textContent)
|
Object |
setUserData(String key,
Object data,
UserDataHandler handler)
|
void |
setValue(String arg0)
|
String |
toString()
|
void |
updateTopMostSoapElement()
|
SecurityHeader
public SecurityHeader(SOAPElement delegateHeader)
insertHeaderBlock
public void insertHeaderBlock(SecurityHeaderBlock block)
throws 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:
XWSSecurityException
insertBefore
public void insertBefore(SecurityHeaderBlock block,
Node elem)
throws XWSSecurityException
- Throws:
XWSSecurityException
appendChild
public void appendChild(SecurityHeaderBlock block)
throws XWSSecurityException
- Throws:
XWSSecurityException
insertHeaderBlockElement
public void insertHeaderBlockElement(SOAPElement blockElement)
throws XWSSecurityException
- Throws:
XWSSecurityException
getCurrentHeaderBlock
public SecurityHeaderBlock getCurrentHeaderBlock(Class implType)
throws XWSSecurityException
- Get the header block to be processed next.
This method will be used on the receiver side.
- Throws:
XWSSecurityException
getCurrentHeaderBlockElement
public SOAPElement getCurrentHeaderBlockElement()
setCurrentHeaderElement
public void setCurrentHeaderElement(SOAPElement currentElement)
throws XWSSecurityException
- Throws:
XWSSecurityException
getCurrentHeaderElement
public SOAPElement getCurrentHeaderElement()
updateTopMostSoapElement
public void updateTopMostSoapElement()
getFirstChildElement
public SOAPElement getFirstChildElement()
getNextSiblingOfTimestamp
public SOAPElement getNextSiblingOfTimestamp()
getAsSoapElement
public SOAPElement getAsSoapElement()
setRole
public void setRole(String roleURI)
getRole
public String getRole()
setMustUnderstand
public void setMustUnderstand(boolean mustUnderstand)
isMustUnderstand
public boolean isMustUnderstand()
addAttribute
public SOAPElement addAttribute(Name arg0,
String arg1)
throws SOAPException
- Specified by:
addAttribute in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(String arg0)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(String arg0,
String arg1)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(String arg0,
String arg1,
String arg2)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(Name arg0)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(SOAPElement arg0)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addNamespaceDeclaration
public SOAPElement addNamespaceDeclaration(String arg0,
String arg1)
throws SOAPException
- Specified by:
addNamespaceDeclaration in interface SOAPElement
- Throws:
SOAPException
addTextNode
public SOAPElement addTextNode(String arg0)
throws SOAPException
- Specified by:
addTextNode in interface SOAPElement
- Throws:
SOAPException
appendChild
public Node appendChild(Node arg0)
throws DOMException
- Specified by:
appendChild in interface Node
- Throws:
DOMException
makeUsable
public SOAPElement makeUsable(SOAPElement elem)
throws XWSSecurityException
- Throws:
XWSSecurityException
cloneNode
public Node cloneNode(boolean arg0)
- Specified by:
cloneNode in interface Node
detachNode
public void detachNode()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getAllAttributes
public Iterator getAllAttributes()
- Specified by:
getAllAttributes in interface SOAPElement
getAttribute
public String getAttribute(String arg0)
- Specified by:
getAttribute in interface Element
getAttributeNode
public Attr getAttributeNode(String arg0)
- Specified by:
getAttributeNode in interface Element
getAttributeNodeNS
public Attr getAttributeNodeNS(String arg0,
String arg1)
- Specified by:
getAttributeNodeNS in interface Element
getAttributeNS
public String getAttributeNS(String arg0,
String arg1)
- Specified by:
getAttributeNS in interface Element
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributes in interface Node
getAttributeValue
public String getAttributeValue(Name arg0)
- Specified by:
getAttributeValue in interface SOAPElement
getChildElements
public Iterator getChildElements()
- Specified by:
getChildElements in interface SOAPElement
getChildElements
public Iterator getChildElements(Name arg0)
- Specified by:
getChildElements in interface SOAPElement
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodes in interface Node
getElementName
public Name getElementName()
- Specified by:
getElementName in interface SOAPElement
getElementsByTagName
public NodeList getElementsByTagName(String arg0)
- Specified by:
getElementsByTagName in interface Element
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String arg0,
String arg1)
- Specified by:
getElementsByTagNameNS in interface Element
getEncodingStyle
public String getEncodingStyle()
- Specified by:
getEncodingStyle in interface SOAPElement
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild in interface Node
getLastChild
public Node getLastChild()
- Specified by:
getLastChild in interface Node
getLocalName
public String getLocalName()
- Specified by:
getLocalName in interface Node
getNamespacePrefixes
public Iterator getNamespacePrefixes()
- Specified by:
getNamespacePrefixes in interface SOAPElement
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI in interface Node
getNamespaceURI
public String getNamespaceURI(String arg0)
- Specified by:
getNamespaceURI in interface SOAPElement
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSibling in interface Node
getNodeName
public String getNodeName()
- Specified by:
getNodeName in interface Node
getNodeType
public short getNodeType()
- Specified by:
getNodeType in interface Node
getNodeValue
public String getNodeValue()
throws DOMException
- Specified by:
getNodeValue in interface Node
- Throws:
DOMException
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocument in interface Node
getParentElement
public SOAPElement getParentElement()
getParentNode
public Node getParentNode()
- Specified by:
getParentNode in interface Node
getPrefix
public String getPrefix()
- Specified by:
getPrefix in interface Node
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSibling in interface Node
getTagName
public String getTagName()
- Specified by:
getTagName in interface Element
getValue
public String getValue()
getVisibleNamespacePrefixes
public Iterator getVisibleNamespacePrefixes()
- Specified by:
getVisibleNamespacePrefixes in interface SOAPElement
hasAttribute
public boolean hasAttribute(String arg0)
- Specified by:
hasAttribute in interface Element
hasAttributeNS
public boolean hasAttributeNS(String arg0,
String arg1)
- Specified by:
hasAttributeNS in interface Element
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes in interface Node
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes in interface Node
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
insertBefore
public Node insertBefore(Node arg0,
Node arg1)
throws DOMException
- Specified by:
insertBefore in interface Node
- Throws:
DOMException
isSupported
public boolean isSupported(String arg0,
String arg1)
- Specified by:
isSupported in interface Node
normalize
public void normalize()
- Specified by:
normalize in interface Node
recycleNode
public void recycleNode()
removeAttribute
public void removeAttribute(String arg0)
throws DOMException
- Specified by:
removeAttribute in interface Element
- Throws:
DOMException
removeAttribute
public boolean removeAttribute(Name arg0)
- Specified by:
removeAttribute in interface SOAPElement
removeAttributeNode
public Attr removeAttributeNode(Attr arg0)
throws DOMException
- Specified by:
removeAttributeNode in interface Element
- Throws:
DOMException
removeAttributeNS
public void removeAttributeNS(String arg0,
String arg1)
throws DOMException
- Specified by:
removeAttributeNS in interface Element
- Throws:
DOMException
removeChild
public Node removeChild(Node arg0)
throws DOMException
- Specified by:
removeChild in interface Node
- Throws:
DOMException
removeContents
public void removeContents()
- Specified by:
removeContents in interface SOAPElement
removeNamespaceDeclaration
public boolean removeNamespaceDeclaration(String arg0)
- Specified by:
removeNamespaceDeclaration in interface SOAPElement
replaceChild
public Node replaceChild(Node arg0,
Node arg1)
throws DOMException
- Specified by:
replaceChild in interface Node
- Throws:
DOMException
setAttribute
public void setAttribute(String arg0,
String arg1)
throws DOMException
- Specified by:
setAttribute in interface Element
- Throws:
DOMException
setAttributeNode
public Attr setAttributeNode(Attr arg0)
throws DOMException
- Specified by:
setAttributeNode in interface Element
- Throws:
DOMException
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr arg0)
throws DOMException
- Specified by:
setAttributeNodeNS in interface Element
- Throws:
DOMException
setAttributeNS
public void setAttributeNS(String arg0,
String arg1,
String arg2)
throws DOMException
- Specified by:
setAttributeNS in interface Element
- Throws:
DOMException
setEncodingStyle
public void setEncodingStyle(String arg0)
throws SOAPException
- Specified by:
setEncodingStyle in interface SOAPElement
- Throws:
SOAPException
setNodeValue
public void setNodeValue(String arg0)
throws DOMException
- Specified by:
setNodeValue in interface Node
- Throws:
DOMException
setParentElement
public void setParentElement(SOAPElement arg0)
throws SOAPException
- Throws:
SOAPException
setPrefix
public void setPrefix(String arg0)
throws DOMException
- Specified by:
setPrefix in interface Node
- Throws:
DOMException
setValue
public void setValue(String arg0)
toString
public String toString()
- Overrides:
toString in class Object
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI in interface Node
compareDocumentPosition
public short compareDocumentPosition(Node other)
throws DOMException
- Specified by:
compareDocumentPosition in interface Node
- Throws:
DOMException
getTextContent
public String getTextContent()
throws DOMException
- Specified by:
getTextContent in interface Node
- Throws:
DOMException
setTextContent
public void setTextContent(String textContent)
throws DOMException
- Specified by:
setTextContent in interface Node
- Throws:
DOMException
isSameNode
public boolean isSameNode(Node other)
- Specified by:
isSameNode in interface Node
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefix in interface Node
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespace in interface Node
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURI in interface Node
isEqualNode
public boolean isEqualNode(Node arg)
- Specified by:
isEqualNode in interface Node
getFeature
public Object getFeature(String feature,
String version)
- Specified by:
getFeature in interface Node
setUserData
public Object setUserData(String key,
Object data,
UserDataHandler handler)
- Specified by:
setUserData in interface Node
getUserData
public Object getUserData(String key)
- Specified by:
getUserData in interface Node
setIdAttribute
public void setIdAttribute(String name,
boolean isId)
throws DOMException
- Specified by:
setIdAttribute in interface Element
- Throws:
DOMException
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr,
boolean isId)
throws DOMException
- Specified by:
setIdAttributeNode in interface Element
- Throws:
DOMException
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
throws DOMException
- Specified by:
setIdAttributeNS in interface Element
- Throws:
DOMException
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo in interface Element
getAllAttributesAsQNames
public Iterator getAllAttributesAsQNames()
- Specified by:
getAllAttributesAsQNames in interface SOAPElement
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.