public class KeyValue extends oracle.security.xmlsec.util.XMLElement implements KeyInfoData
| Constructor and Description |
|---|
KeyValue(org.w3c.dom.Document owner)
Creates a new
KeyValue instance. |
KeyValue(org.w3c.dom.Document owner,
oracle.security.xmlsec.util.XMLElement keyValueData)
Creates a new
KeyValue instance. |
KeyValue(org.w3c.dom.Element element)
Creates a new
KeyValue instance
from the given Element node. |
KeyValue(org.w3c.dom.Element element,
java.lang.String systemId)
Creates a new
KeyValue instance
from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
KeyValueData |
getKeyValueData()
Returns the KeyValue child data element for this KeyValue.
|
java.security.PublicKey |
getPublicKey()
Returns the public key contained in this KeyValue's child
data element.
|
java.lang.String |
getType()
Returns the URI for this KeyValue's child type, e.g.,
XMLURI.obj_DSAKeyValue or XMLURI.obj_RSAKeyValue. |
void |
setKeyValueData(oracle.security.xmlsec.util.XMLElement keyValueData)
Sets the KeyValue child data element for this KeyValue, replacing
any existing value.
|
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 KeyValue(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
KeyValue instance
from the given Element node.element - An Element node in the XML document that conforms to
the XML-DSIG KeyValue schema.org.w3c.dom.DOMExceptionpublic KeyValue(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
KeyValue instance
from the given Element node.element - An Element node in the XML document that conforms to
the XML-DSIG KeyValue schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)public KeyValue(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
KeyValue instance.owner - The owner document of the new KeyValue.org.w3c.dom.DOMExceptionpublic KeyValue(org.w3c.dom.Document owner,
oracle.security.xmlsec.util.XMLElement keyValueData)
throws org.w3c.dom.DOMException
KeyValue instance.owner - The owner document of the new KeyValue.keyValueData - A XMLElement implementing the KeyValueData
interface.org.w3c.dom.DOMExceptionRSAKeyValue,
DSAKeyValuepublic void setKeyValueData(oracle.security.xmlsec.util.XMLElement keyValueData)
throws org.w3c.dom.DOMException
XMLElement implementing the KeyValueData
interface.org.w3c.dom.DOMExceptionpublic KeyValueData getKeyValueData()
KeyValueData, or null if
none is defined.public java.security.PublicKey getPublicKey()
oracle.security.crypto.core.PublicKey instance.public java.lang.String getType()
XMLURI.obj_DSAKeyValue or XMLURI.obj_RSAKeyValue.getType in interface KeyInfoData