|
Oracle Fusion Middleware XKMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10679-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.xkms.RSAKeyPair
public class RSAKeyPair
XKMS KeyValue class for RSA keys.
A RSAKeyPair consists of an RSA modulus and public exponent.
| Field Summary |
|---|
| Fields inherited from class oracle.security.xmlsec.util.XMLNode |
|---|
node, systemId |
| Constructor Summary | |
|---|---|
RSAKeyPair(org.w3c.dom.Document owner)Creates a new RSAKeyPair instance. |
|
RSAKeyPair(org.w3c.dom.Document owner, java.security.KeyPair rsaKeyPair)Creates a new RSAKeyPair instance. |
|
RSAKeyPair(org.w3c.dom.Document owner, java.security.interfaces.RSAPrivateCrtKey privKey, java.security.interfaces.RSAPublicKey pubKey)Creates a new RSAKeyPair instance. |
|
RSAKeyPair(org.w3c.dom.Element element)Creates a new RSAKeyPair instance from the given Element node. |
|
RSAKeyPair(org.w3c.dom.Element element, java.lang.String systemId)Creates a new RSAKeyPair instance from the given Element node. |
|
| Method Summary | |
|---|---|
java.math.BigInteger |
getD()Returns the Private Exponent of this RSAKeyPair. |
java.math.BigInteger |
getDP()Returns the Prime Exponent of P (d mod (p-1)) of this RSAKeyPair. |
java.math.BigInteger |
getDQ()Returns the Prime Exponent of Q (d mod (q-1)) of this RSAKeyPair. |
java.math.BigInteger |
getExponent()Returns the public exponent of this RSAKeyPair. |
java.math.BigInteger |
getInverseQ()Returns the CRT Coefficient of this RSAKeyPair. |
java.math.BigInteger |
getModulus()Returns the modulus of this RSAKeyPair. |
java.math.BigInteger |
getP()Returns the prime P of this RSAKeyPair. |
java.security.PrivateKey |
getPrivateKey()Get the Private Key. |
java.security.PublicKey |
getPublicKey()Get the Public Key. |
java.math.BigInteger |
getQ()Returns the prime Q of this RSAKeyPair. |
java.lang.String |
getType() |
void |
setD(java.math.BigInteger exponent)Sets the Private Exponent element of this RSAKeyPair, replacing any existing Private Exponent element. |
void |
setDP(java.math.BigInteger exponent)Sets the Prime Exponent of P (d mod (p-1)).- DQ element of this RSAKeyPair, replacing any existing DQ element. |
void |
setDQ(java.math.BigInteger exponent)Sets the Prime Exponent of Q (d mod (q-1)).- DQ element of this RSAKeyPair, replacing any existing DQ element. |
void |
setExponent(java.math.BigInteger exponent)Sets the Exponent element of this RSAKeyPair, replacing any existing Exponent element. |
void |
setInverseQ(java.math.BigInteger exponent)Sets the CRT Coefficient element of this RSAKeyPair, replacing any existing Coefficient element. |
void |
setModulus(java.math.BigInteger modulus)Sets the Modulus element of this RSAKeyPair, replacing any existing Modulus element. |
void |
setP(java.math.BigInteger exponent)Sets the prime P - P element of this RSAKeyPair, replacing any existing P element. |
void |
setQ(java.math.BigInteger exponent)Sets the prime Q - Q element of this RSAKeyPair, replacing any existing Q 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 |
|---|
public RSAKeyPair(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
RSAKeyPair instance from the given Element node.
element - An Element node in the XML document that conforms to the XKMS RSAKeyPair schema.org.w3c.dom.DOMException
public RSAKeyPair(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
RSAKeyPair instance from the given Element node.
element - An Element node in the XML document that conforms to the XKMS RSAKeyPair schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMException
public RSAKeyPair(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
RSAKeyPair instance.
owner - The owner document of the new RSAKeyPair.org.w3c.dom.DOMException
public RSAKeyPair(org.w3c.dom.Document owner,
java.security.KeyPair rsaKeyPair)
throws org.w3c.dom.DOMException
RSAKeyPair instance.
owner - The owner document of the new RSAKeyPair.rsaKeyPair - A java.security.KeyPair.org.w3c.dom.DOMException -
Note the change in the method signature
Previously public RSAKeyPair (Document , oracle.security.crypto.KeyPair )
Now public RSAKeyPair (Document , java.security.KeyPair )
public RSAKeyPair(org.w3c.dom.Document owner,
java.security.interfaces.RSAPrivateCrtKey privKey,
java.security.interfaces.RSAPublicKey pubKey)
throws org.w3c.dom.DOMException
RSAKeyPair instance.
owner - The owner document of the new RSAKeyPair.privKey - A java.security.PrivateKey.pubKey - A java.security.PublicKey.org.w3c.dom.DOMException -
Note the change in the method signature
Previously public RSAKeyPair (Document , oracle.security.crypto.core.RSAPrivateKey ,oracle.security.crypto.core.PublicKey)
Now public RSAKeyPair (Document , java.security.RSAPrivateCrtKey , RSAPublicKey)
| Method Detail |
|---|
public void setModulus(java.math.BigInteger modulus)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing Modulus element.modulus - The modulus of the RSA key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getModulus()
RSAKeyPair.
public void setExponent(java.math.BigInteger exponent)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing Exponent element.exponent - The public exponent of the RSA public key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getExponent()
RSAKeyPair.
public void setP(java.math.BigInteger exponent)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing P element.exponent - The prime P of the RSA key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getP()
RSAKeyPair.
public void setQ(java.math.BigInteger exponent)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing Q element.exponent - The prime Q of the RSA key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getQ()
RSAKeyPair.
public void setDP(java.math.BigInteger exponent)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing DQ element.exponent - The prime exponentof P of the RSA key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getDP()
RSAKeyPair.
public void setDQ(java.math.BigInteger exponent)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing DQ element.exponent - The prime exponent of Q of the RSA key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getDQ()
RSAKeyPair.
public void setInverseQ(java.math.BigInteger exponent)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing Coefficient element.exponent - The CRT Coefficient of the RSA key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getInverseQ()
RSAKeyPair.
public void setD(java.math.BigInteger exponent)
throws org.w3c.dom.DOMException
RSAKeyPair, replacing any existing Private Exponent element.exponent - The Private Exponent of the RSA private key.org.w3c.dom.DOMExceptionpublic java.math.BigInteger getD()
RSAKeyPair.
public java.security.PrivateKey getPrivateKey()
throws java.security.spec.InvalidKeySpecException,
java.security.NoSuchAlgorithmException
java.security.interfaces.PrivateKey. Note the changes in the exceptions thrown
InvalidKeySpecException,NoSuchAlgorithmException are introduced
java.security.spec.InvalidKeySpecExceptionjava.security.NoSuchAlgorithmException
public java.security.PublicKey getPublicKey()
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
RSAPublicKey.
Note the changes in the exceptions thrown
InvalidKeySpecException,NoSuchAlgorithmException are introduced
java.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionpublic java.lang.String getType()
|
Oracle Fusion Middleware XKMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10679-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||