com.sun.xml.wss.impl.misc
Class SecurityHeaderBlockImpl

java.lang.Object
  extended by com.sun.xml.wss.impl.misc.SOAPElementExtension
      extended by com.sun.xml.wss.impl.misc.SecurityHeaderBlockImpl
All Implemented Interfaces:
SecurityHeaderBlock, SOAPElement, Element, Node
Direct Known Subclasses:
BinarySecurityToken, DerivedKeyTokenHeaderBlock, EncryptedKeyToken, EncryptedTypeHeaderBlock, KeyInfoHeaderBlock, ReferenceListHeaderBlock, SamlAssertionHeaderBlock, SecurityContextTokenImpl, SecurityTokenReference, SignatureConfirmationHeaderBlock, SignatureHeaderBlock, Timestamp, UsernameToken

public abstract class SecurityHeaderBlockImpl
extends SOAPElementExtension
implements SecurityHeaderBlock

Author:
XWS-Security Development Team

Field Summary
protected  SOAPElement delegateElement
           
 
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
protected SecurityHeaderBlockImpl()
           
protected SecurityHeaderBlockImpl(SOAPElement delegateElement)
           
 
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)
           
 Node cloneNode(boolean arg0)
           
 short compareDocumentPosition(Node other)
           
 void detachNode()
           
 boolean equals(Object obj)
           
static SecurityHeaderBlock fromSoapElement(SOAPElement element, Class implClass)
           
 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()
           
 Name getElementName()
           
 NodeList getElementsByTagName(String arg0)
           
 NodeList getElementsByTagNameNS(String arg0, String arg1)
           
 String getEncodingStyle()
           
 Object getFeature(String feature, String version)
           
 Node getFirstChild()
           
 String getId()
           
 Node getLastChild()
           
 String getLocalName()
           
 Iterator getNamespacePrefixes()
           
 String getNamespaceURI()
           
 String getNamespaceURI(String arg0)
           
 Node getNextSibling()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 Document getOwnerDocument()
           
 SOAPElement getParentElement()
           
 Node getParentNode()
           
 String getPrefix()
           
 Node getPreviousSibling()
           
 TypeInfo getSchemaTypeInfo()
           
protected static SOAPFactory getSoapFactory()
           
 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()
           
 Node insertBefore(Node arg0, Node arg1)
           
 boolean isBSP()
           
 void isBSP(boolean flag)
           
 boolean isDefaultNamespace(String namespaceURI)
           
 boolean isEqualNode(Node arg)
           
 boolean isSameNode(Node other)
           
 boolean isSupported(String arg0, String arg1)
           
 String lookupNamespaceURI(String prefix)
           
 String lookupPrefix(String namespaceURI)
           
 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 setEncodingStyle(String arg0)
           
 void setIdAttribute(String name, boolean isId)
           
 void setIdAttributeNode(Attr idAttr, boolean isId)
           
 void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
           
 void setNodeValue(String arg0)
           
 void setParentElement(SOAPElement arg0)
           
 void setPrefix(String arg0)
           
protected  void setSOAPElement(SOAPElement delegateElement)
           
 void setTextContent(String textContent)
           
 Object setUserData(String key, Object data, UserDataHandler handler)
           
 void setValue(String arg0)
           
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.soap.SOAPElement
addAttribute, addChildElement, createQName, getAttributeValue, getChildElements, getElementQName, removeAttribute, setElementQName
 

Field Detail

delegateElement

protected SOAPElement delegateElement
Constructor Detail

SecurityHeaderBlockImpl

protected SecurityHeaderBlockImpl()

SecurityHeaderBlockImpl

protected SecurityHeaderBlockImpl(SOAPElement delegateElement)
Method Detail

setSOAPElement

protected void setSOAPElement(SOAPElement delegateElement)

getId

public String getId()
Specified by:
getId in interface SecurityHeaderBlock

setWsuIdAttr

protected void setWsuIdAttr(Element element,
                            String wsuId)

fromSoapElement

public static SecurityHeaderBlock fromSoapElement(SOAPElement element,
                                                  Class implClass)
                                           throws XWSSecurityException
Throws:
XWSSecurityException

getAsSoapElement

public SOAPElement getAsSoapElement()
                             throws XWSSecurityException
Specified by:
getAsSoapElement in interface SecurityHeaderBlock
Throws:
XWSSecurityException

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

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

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)

getSoapFactory

protected static SOAPFactory getSoapFactory()

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

isBSP

public void isBSP(boolean flag)

isBSP

public boolean isBSP()

getAllAttributesAsQNames

public Iterator getAllAttributesAsQNames()
Specified by:
getAllAttributesAsQNames in interface SOAPElement


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.