Skip navigation links

Oracle Security Developer Tools XML Security Java API Reference
11g (11.1.1)

E10680-02


oracle.security.xmlsec.keys
Class RSAKeyValue

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

All Implemented Interfaces:
KeyValueData

public class RSAKeyValue
extends XMLElement
implements KeyValueData

XML-DSIG KeyValue class for RSA public keys.

A RSAKeyValue consists of an RSA modulus and public exponent.


Field Summary

 

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

 

Constructor Summary
RSAKeyValue(org.w3c.dom.Element element)
          Creates a new RSAKeyValue instance from the given Element node.
RSAKeyValue(org.w3c.dom.Element element, java.lang.String systemId)
          Creates a new RSAKeyValue instance from the given Element node.

 

Method Summary
 java.math.BigInteger getExponent()
          Returns the public exponent of this RSAKeyValue.
 java.math.BigInteger getModulus()
          Returns the modulus of this RSAKeyValue.
 java.security.PublicKey getPublicKey()
          Returns a oracle.security.crypto.core.PublicKey.
 java.lang.String getType()
          Returns a URI identifying the type of KeyValue.
 void setExponent(java.math.BigInteger exponent)
          Sets the Exponent element of this RSAKeyValue, replacing any existing Exponent element.
 void setModulus(java.math.BigInteger modulus)
          Sets the Modulus element of this RSAKeyValue, replacing any existing Modulus element.

 

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

RSAKeyValue

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

RSAKeyValue

public RSAKeyValue(org.w3c.dom.Element element,
                   java.lang.String systemId)
            throws org.w3c.dom.DOMException
Creates a new RSAKeyValue instance from the given Element node.
Parameters:
element - An Element node in the XML document that conforms to the XML-DSIG RSAKeyValue 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)

Method Detail

setModulus

public void setModulus(java.math.BigInteger modulus)
                throws org.w3c.dom.DOMException
Sets the Modulus element of this RSAKeyValue, replacing any existing Modulus element.
Parameters:
modulus - The modulus of the RSA public key.
Throws:
org.w3c.dom.DOMException

getModulus

public java.math.BigInteger getModulus()
Returns the modulus of this RSAKeyValue.

setExponent

public void setExponent(java.math.BigInteger exponent)
                 throws org.w3c.dom.DOMException
Sets the Exponent element of this RSAKeyValue, replacing any existing Exponent element.
Parameters:
exponent - The public exponent of the RSA public key.
Throws:
org.w3c.dom.DOMException

getExponent

public java.math.BigInteger getExponent()
Returns the public exponent of this RSAKeyValue.

getPublicKey

public java.security.PublicKey getPublicKey()
Description copied from interface: KeyValueData
Returns a oracle.security.crypto.core.PublicKey.
Specified by:
getPublicKey in interface KeyValueData

getType

public java.lang.String getType()
Description copied from interface: KeyValueData
Returns a URI identifying the type of KeyValue.

Interface XMLURI contains the KeyInfo data type URIs for public key value elements defined in the XML Signature and XML Encryption namespaces, including:

Specified by:
getType in interface KeyValueData

Skip navigation links

Oracle Security Developer Tools XML Security Java API Reference
11g (11.1.1)

E10680-02


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