public abstract class AbstractKeyBinding
extends oracle.security.xmlsec.util.XMLElement
KeyBindingAbstractType element for use with
requests and responses.| Constructor and Description |
|---|
AbstractKeyBinding(org.w3c.dom.Document owner,
java.lang.String tagName)
Creates a new
AbstractKeyBinding instance. |
AbstractKeyBinding(org.w3c.dom.Document owner,
java.lang.String tagName,
java.lang.String systemId)
Creates a new
AbstractKeyBinding instance. |
AbstractKeyBinding(org.w3c.dom.Element element)
Creates a new
AbstractKeyBinding instance
from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyUsage(java.lang.String keyUsage)
Adds a KeyUsage code.
|
void |
addUseKeyWith(java.lang.String application,
java.lang.String identifier)
Adds a
UseKeyWith URI. |
java.lang.String |
getID()
Returns the
Id attribute value for this KeyBinding,
or null if none is set. |
XSKeyInfo |
getKeyInfo()
Returns the
dsig:KeyInfo child element for this
KeyBinding, or null if none is set. |
java.util.List |
getKeyUsages()
Returns a list of
KeyUsage values. |
java.util.List |
getUseKeyWithApplications()
Returns a list of
UseKeyWith Application URIs. |
java.util.List |
getUseKeyWithIdentifiers()
Returns a list of
UseKeyWith Identifier URIs. |
void |
setID(java.lang.String id)
Sets the
Id attribute for this KeyBinding. |
void |
setKeyInfo(XSKeyInfo keyInfo)
Sets the
dsig:KeyInfo child element for this KeyBinding. |
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXMLpublic AbstractKeyBinding(org.w3c.dom.Document owner,
java.lang.String tagName)
throws org.w3c.dom.DOMException
AbstractKeyBinding instance.owner - The owner document of the new AbstractKeyBinding.tagName - The name of the element to be created.org.w3c.dom.DOMExceptionpublic AbstractKeyBinding(org.w3c.dom.Document owner,
java.lang.String tagName,
java.lang.String systemId)
throws org.w3c.dom.DOMException
AbstractKeyBinding instance.owner - The owner document of the new AbstractKeyBinding.tagName - The name of the element to be created.systemId - The URI string system ID for the Message.org.w3c.dom.DOMExceptionpublic AbstractKeyBinding(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
AbstractKeyBinding instance
from the given Element node.element - An Element node in the XML document that conforms to
the XKMS AbstractKeyBinding schema.org.w3c.dom.DOMExceptionpublic void addKeyUsage(java.lang.String keyUsage)
throws org.w3c.dom.DOMException
keyUsage - A URI specifiying intended key usage.org.w3c.dom.DOMExceptionpublic void addUseKeyWith(java.lang.String application,
java.lang.String identifier)
throws org.w3c.dom.DOMException
UseKeyWith URI.application - A URI string that specifies the application protocol
with which the key may be used.identifier - A URI string that specifies the subject to which the
key corresponds within the specified application protocol.org.w3c.dom.DOMExceptionpublic XSKeyInfo getKeyInfo()
dsig:KeyInfo child element for this
KeyBinding, or null if none is set.dsig:KeyInfo for this KeyBinding.public java.util.List getKeyUsages()
KeyUsage values.List of KeyUsage URIs.public java.util.List getUseKeyWithApplications()
UseKeyWith Application URIs.List of application URI strings.public java.util.List getUseKeyWithIdentifiers()
UseKeyWith Identifier URIs.List of URI strings.public void setID(java.lang.String id)
throws org.w3c.dom.DOMException
Id attribute for this KeyBinding.id - The value of the ID attribute.org.w3c.dom.DOMExceptionpublic java.lang.String getID()
Id attribute value for this KeyBinding,
or null if none is set.public void setKeyInfo(XSKeyInfo keyInfo) throws org.w3c.dom.DOMException
dsig:KeyInfo child element for this KeyBinding.keyInfo - The dsig:KeyInfo for this KeyBinding.org.w3c.dom.DOMException