public class RSAMultiPrimePrivateCrtKeyImpl extends Object implements RSAMultiPrimePrivateCrtKey
Constructor and Description |
---|
RSAMultiPrimePrivateCrtKeyImpl(BigInteger publicExp,
BigInteger primeExpP,
BigInteger primeExpQ,
BigInteger prP,
BigInteger prQ,
BigInteger crtCft,
RSAOtherPrimeInfo[] otherPrmInfo) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Returns the name of the algorithm of this key.
|
BigInteger |
getCrtCoefficient()
Returns the CRT coefficient,
q^-1 mod p . |
byte[] |
getEncoded()
Returns the encoded form of this key, or
null if encoding is not
supported by this key. |
String |
getFormat()
Returns the name of the format used to encode this key, or
null
if it can not be encoded. |
BigInteger |
getModulus()
Returns the modulus.
|
RSAOtherPrimeInfo[] |
getOtherPrimeInfo()
Returns the information for the additional primes.
|
BigInteger |
getPrimeExponentP()
Returns the CRT exponent of the prime
p . |
BigInteger |
getPrimeExponentQ()
Returns the CRT exponent of the prime
q . |
BigInteger |
getPrimeP()
Returns the prime factor
p of n . |
BigInteger |
getPrimeQ()
Returns the prime factor
q of n . |
BigInteger |
getPrivateExponent()
Returns the private exponent
d . |
BigInteger |
getPublicExponent()
Returns the public exponent
e . |
public RSAMultiPrimePrivateCrtKeyImpl(BigInteger publicExp, BigInteger primeExpP, BigInteger primeExpQ, BigInteger prP, BigInteger prQ, BigInteger crtCft, RSAOtherPrimeInfo[] otherPrmInfo)
public BigInteger getCrtCoefficient()
RSAMultiPrimePrivateCrtKey
q^-1 mod p
.getCrtCoefficient
in interface RSAMultiPrimePrivateCrtKey
public RSAOtherPrimeInfo[] getOtherPrimeInfo()
RSAMultiPrimePrivateCrtKey
getOtherPrimeInfo
in interface RSAMultiPrimePrivateCrtKey
null
if
there are only the two primes (p, q
),public BigInteger getPrimeExponentP()
RSAMultiPrimePrivateCrtKey
p
.getPrimeExponentP
in interface RSAMultiPrimePrivateCrtKey
p
.public BigInteger getPrimeExponentQ()
RSAMultiPrimePrivateCrtKey
q
.getPrimeExponentQ
in interface RSAMultiPrimePrivateCrtKey
q
.public BigInteger getPrimeP()
RSAMultiPrimePrivateCrtKey
p
of n
.getPrimeP
in interface RSAMultiPrimePrivateCrtKey
p
of n
.public BigInteger getPrimeQ()
RSAMultiPrimePrivateCrtKey
q
of n
.getPrimeQ
in interface RSAMultiPrimePrivateCrtKey
q
of n
.public BigInteger getPublicExponent()
RSAMultiPrimePrivateCrtKey
e
.getPublicExponent
in interface RSAMultiPrimePrivateCrtKey
e
.public BigInteger getPrivateExponent()
RSAPrivateKey
d
.getPrivateExponent
in interface RSAPrivateKey
d
.public String getFormat()
Key
null
if it can not be encoded.public byte[] getEncoded()
Key
null
if encoding is not
supported by this key.getEncoded
in interface Key
null
if encoding is not
supported by this key.public String getAlgorithm()
Key
null
is returned.getAlgorithm
in interface Key
null
if the
algorithm is unknown.public BigInteger getModulus()
RSAKey
getModulus
in interface RSAKey