Package java.security.interfaces
Interface RSAPrivateCrtKey
- All Superinterfaces:
Key,PrivateKey,RSAKey,RSAPrivateKey,Serializable
- All Known Implementing Classes:
BCRSAPrivateCrtKey,JCERSAPrivateCrtKey,OpenSSLRSAPrivateCrtKey
public interface RSAPrivateCrtKey extends RSAPrivateKey
The interface for a PKCS#1 RSA private key using CRT information values.
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDThe serial version identifier. -
Method Summary
Modifier and Type Method Description BigIntegergetCrtCoefficient()Returns the CRT coefficient,q^-1 mod p.BigIntegergetPrimeExponentP()Returns the CRT exponent of the primetp.BigIntegergetPrimeExponentQ()Returns the CRT exponent of the primeq.BigIntegergetPrimeP()Returns the prime factorpofn.BigIntegergetPrimeQ()Returns the prime factorqofn.BigIntegergetPublicExponent()Returns the public exponente.Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormatMethods inherited from interface java.security.interfaces.RSAKey
getModulusMethods inherited from interface java.security.interfaces.RSAPrivateKey
getPrivateExponent
-
Field Details
-
serialVersionUID
static final long serialVersionUIDThe serial version identifier.- See Also:
- Constant Field Values
-
-
Method Details
-
getCrtCoefficient
BigInteger getCrtCoefficient()Returns the CRT coefficient,q^-1 mod p.- Returns:
- the CRT coefficient.
-
getPrimeP
BigInteger getPrimeP()Returns the prime factorpofn.- Returns:
- the prime factor
pofn.
-
getPrimeQ
BigInteger getPrimeQ()Returns the prime factorqofn.- Returns:
- the prime factor
qofn.
-
getPrimeExponentP
BigInteger getPrimeExponentP()Returns the CRT exponent of the primetp.- Returns:
- the CRT exponent of the prime
p.
-
getPrimeExponentQ
BigInteger getPrimeExponentQ()Returns the CRT exponent of the primeq.- Returns:
- the CRT exponent of the prime
q.
-
getPublicExponent
BigInteger getPublicExponent()Returns the public exponente.- Returns:
- the public exponent
e.
-