Package java.security.interfaces
Interface RSAMultiPrimePrivateCrtKey
- All Superinterfaces:
Key,PrivateKey,RSAKey,RSAPrivateKey,Serializable
public interface RSAMultiPrimePrivateCrtKey extends RSAPrivateKey
The interface for a Multi-Prime RSA private key. Specified by PKCS #1 v2.0 Amendment 1:
Multi-Prime RSA.
-
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.RSAOtherPrimeInfo[]getOtherPrimeInfo()Returns the information for the additional primes.BigIntegergetPrimeExponentP()Returns the CRT exponent of the primep.BigIntegergetPrimeExponentQ()Returns the CRT exponent of the primeq.BigIntegergetPrimeP()Returns the prime factorpofn.BigIntegergetPrimeQ()Returns the prime factorqofn.BigIntegergetPublicExponent()Returns the public exponente.
-
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.
-
getOtherPrimeInfo
RSAOtherPrimeInfo[] getOtherPrimeInfo()Returns the information for the additional primes.- Returns:
- the information for the additional primes, or
nullif there are only the two primes (p, q),
-
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 primep.- 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.
-