Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-03


oracle.security.xmlsec.keys
Class KeyValue

java.lang.Object
  extended by oracle.security.xmlsec.util.XMLNode
      extended by oracle.security.xmlsec.util.XMLElement
          extended by oracle.security.xmlsec.keys.KeyValue

All Implemented Interfaces:
KeyInfoData

public class KeyValue
extends XMLElement
implements KeyInfoData

XML-DSIG KeyValue element.


Field Summary

 

Fields inherited from class oracle.security.xmlsec.util.XMLNode
node, systemId

 

Constructor Summary
KeyValue(org.w3c.dom.Document owner)
          Creates a new KeyValue instance.
KeyValue(org.w3c.dom.Document owner, 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.

 

Method Summary
 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(XMLElement keyValueData)
          Sets the KeyValue child data element for this KeyValue, replacing any existing value.

 

Methods inherited from class oracle.security.xmlsec.util.XMLElement
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, setDefaultNSPrefix

 

Methods inherited from class oracle.security.xmlsec.util.XMLNode
appendChild, 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, toStringXML

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

KeyValue

public KeyValue(org.w3c.dom.Element element)
         throws org.w3c.dom.DOMException
Creates a new KeyValue instance from the given Element node.
Parameters:
element - An Element node in the XML document that conforms to the XML-DSIG KeyValue schema.
Throws:
org.w3c.dom.DOMException

KeyValue

public KeyValue(org.w3c.dom.Element element,
                java.lang.String systemId)
         throws org.w3c.dom.DOMException
Creates a new KeyValue instance from the given Element node.
Parameters:
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.
Throws:
org.w3c.dom.DOMException
Since:
2.0
See Also:
XMLNode.setSystemId(java.lang.String)

KeyValue

public KeyValue(org.w3c.dom.Document owner)
         throws org.w3c.dom.DOMException
Creates a new KeyValue instance.
Parameters:
owner - The owner document of the new KeyValue.
Throws:
org.w3c.dom.DOMException

KeyValue

public KeyValue(org.w3c.dom.Document owner,
                XMLElement keyValueData)
         throws org.w3c.dom.DOMException
Creates a new KeyValue instance.
Parameters:
owner - The owner document of the new KeyValue.
keyValueData - A XMLElement implementing the KeyValueData interface.
Throws:
org.w3c.dom.DOMException
See Also:
RSAKeyValue, DSAKeyValue

Method Detail

setKeyValueData

public void setKeyValueData(XMLElement keyValueData)
                     throws org.w3c.dom.DOMException
Sets the KeyValue child data element for this KeyValue, replacing any existing value. A XMLElement implementing the KeyValueData interface.
Throws:
org.w3c.dom.DOMException

getKeyValueData

public KeyValueData getKeyValueData()
Returns the KeyValue child data element for this KeyValue.
Returns:
A KeyValueData, or null if none is defined.

getPublicKey

public java.security.PublicKey getPublicKey()
Returns the public key contained in this KeyValue's child data element.
Returns:
A oracle.security.crypto.core.PublicKey instance.

getType

public java.lang.String getType()
Returns the URI for this KeyValue's child type, e.g., XMLURI.obj_DSAKeyValue or XMLURI.obj_RSAKeyValue.
Specified by:
getType in interface KeyInfoData

Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-03


Copyright © 2005, 2011 , Oracle. All rights reserved.