public class RSAKeyValue extends XMLElement implements KeyValueData
A RSAKeyValue consists of an RSA modulus and public exponent.
| Constructor and Description | 
|---|
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. | 
| Modifier and Type | Method and Description | 
|---|---|
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. | 
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, toStringXML
public RSAKeyValue(org.w3c.dom.Element element)
            throws org.w3c.dom.DOMException
RSAKeyValue instance from the given Element node.element - An Element node in the XML document that conforms to the XML-DSIG RSAKeyValue schema.org.w3c.dom.DOMException
public RSAKeyValue(org.w3c.dom.Element element,
           java.lang.String systemId)
            throws org.w3c.dom.DOMException
RSAKeyValue instance from the given Element node.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.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)
public void setModulus(java.math.BigInteger modulus)
                throws org.w3c.dom.DOMException
RSAKeyValue, replacing any existing Modulus element.modulus - The modulus of the RSA public key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getModulus()
RSAKeyValue.
public void setExponent(java.math.BigInteger exponent)
                 throws org.w3c.dom.DOMException
RSAKeyValue, replacing any existing Exponent element.exponent - The public exponent of the RSA public key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getExponent()
RSAKeyValue.public java.security.PublicKey getPublicKey()
KeyValueDataoracle.security.crypto.core.PublicKey.getPublicKey in interface KeyValueDatapublic java.lang.String getType()
KeyValueDataInterface XMLURI contains the KeyInfo data type URIs for public key value elements defined in the XML Signature and XML Encryption namespaces, including:
XMLURI.obj_DHKeyValueXMLURI.obj_DSAKeyValueXMLURI.obj_RSAKeyValuegetType in interface KeyValueData