public final class MyRSAPrivateKey extends AbstractPrivateKey implements IMyPrivateKey
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XML_ELEMENT_NAME |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION| Constructor and Description |
|---|
MyRSAPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger dP,
java.math.BigInteger dQ,
java.math.BigInteger qInv) |
MyRSAPrivateKey(mybouncycastle.org.bouncycastle.crypto.CipherParameters cipherparams) |
MyRSAPrivateKey(org.w3c.dom.Element a_xmlElement) |
MyRSAPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo) |
| Modifier and Type | Method and Description |
|---|---|
IMyPublicKey |
createPublicKey()
Creates the corresponding public key to this private key.
|
java.lang.String |
getAlgorithm() |
mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
getAsPrivateKeyInfo()
Gets the private key as a PrivateKeyInfo object.
|
java.math.BigInteger |
getDP() |
java.math.BigInteger |
getDQ() |
java.lang.String |
getFormat() |
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getP() |
mybouncycastle.org.bouncycastle.crypto.CipherParameters |
getParams() |
java.math.BigInteger |
getPrivateExponent() |
java.math.BigInteger |
getPublicExponent() |
java.math.BigInteger |
getQ() |
java.math.BigInteger |
getQInv() |
ISignatureCreationAlgorithm |
getSignatureAlgorithm()
Gets a signature algorithm object for this key.
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document.
|
getEncodedpublic static final java.lang.String XML_ELEMENT_NAME
public MyRSAPrivateKey(mybouncycastle.org.bouncycastle.crypto.CipherParameters cipherparams)
throws java.lang.Exception
java.lang.Exceptionpublic MyRSAPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo)
throws java.lang.Exception
java.lang.Exceptionpublic MyRSAPrivateKey(org.w3c.dom.Element a_xmlElement)
throws java.lang.Exception
java.lang.Exceptionpublic MyRSAPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger dP,
java.math.BigInteger dQ,
java.math.BigInteger qInv)
throws java.lang.Exception
java.lang.Exceptionpublic ISignatureCreationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in interface IMyPrivateKeypublic IMyPublicKey createPublicKey()
createPublicKey in interface IMyPrivateKeypublic mybouncycastle.org.bouncycastle.crypto.CipherParameters getParams()
public java.math.BigInteger getModulus()
public java.math.BigInteger getPrivateExponent()
public java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getDP()
public java.math.BigInteger getDQ()
public java.math.BigInteger getQInv()
public java.math.BigInteger getPublicExponent()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo getAsPrivateKeyInfo()
IMyPrivateKeygetAsPrivateKeyInfo in interface IMyPrivateKeypublic org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodabletoXmlElement in interface IXMLEncodablea_doc - a documentCopyright © 2023. All rights reserved.