public final class RSAPrivateCrtKeyImpl extends PKCS8Key implements java.security.interfaces.RSAPrivateCrtKey
RSAPrivateKeyImpl,
RSAKeyFactory,
Serialized Formalgid, encodedKey, key| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Returns the algorithm to be used with this key.
|
java.math.BigInteger |
getCrtCoefficient() |
java.math.BigInteger |
getModulus() |
java.security.spec.AlgorithmParameterSpec |
getParams() |
java.math.BigInteger |
getPrimeExponentP() |
java.math.BigInteger |
getPrimeExponentQ() |
java.math.BigInteger |
getPrimeP() |
java.math.BigInteger |
getPrimeQ() |
java.math.BigInteger |
getPrivateExponent() |
java.math.BigInteger |
getPublicExponent() |
static java.security.interfaces.RSAPrivateKey |
newKey(RSAUtil.KeyType type,
java.security.spec.AlgorithmParameterSpec params,
java.math.BigInteger n,
java.math.BigInteger e,
java.math.BigInteger d,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger pe,
java.math.BigInteger qe,
java.math.BigInteger coeff)
Generate a new key from the specified type and components.
|
static java.security.interfaces.RSAPrivateKey |
newKey(RSAUtil.KeyType type,
java.lang.String format,
byte[] encoded)
Generate a new RSAPrivate(Crt)Key from the specified type,
format and encoding.
|
java.lang.String |
toString() |
clear, equals, getAlgorithmId, getEncoded, getFormat, hashCode, parseKey, writeReplacepublic static java.security.interfaces.RSAPrivateKey newKey(RSAUtil.KeyType type, java.lang.String format, byte[] encoded) throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic static java.security.interfaces.RSAPrivateKey newKey(RSAUtil.KeyType type, java.security.spec.AlgorithmParameterSpec params, java.math.BigInteger n, java.math.BigInteger e, java.math.BigInteger d, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger pe, java.math.BigInteger qe, java.math.BigInteger coeff) throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic java.lang.String getAlgorithm()
PKCS8KeygetAlgorithm in interface java.security.KeygetAlgorithm in class PKCS8Keypublic java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKeypublic java.math.BigInteger getPublicExponent()
getPublicExponent in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface java.security.interfaces.RSAPrivateKeypublic java.math.BigInteger getPrimeP()
getPrimeP in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrimeQ()
getPrimeQ in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrimeExponentP()
getPrimeExponentP in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrimeExponentQ()
getPrimeExponentQ in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getCrtCoefficient()
getCrtCoefficient in interface java.security.interfaces.RSAPrivateCrtKeypublic java.security.spec.AlgorithmParameterSpec getParams()
getParams in interface java.security.interfaces.RSAKeypublic java.lang.String toString()
toString in class java.lang.Object