org.bouncycastle.jce.provider
Class JCERSAPrivateCrtKey
- RSAPrivateCrtKey, RSAPrivateKey, PKCS12BagAttributeCarrier
public class JCERSAPrivateCrtKey
implements RSAPrivateCrtKey
A provider representation for a RSA private key, with CRT factors included.
getCrtCoefficient
public BigInteger getCrtCoefficient()
return the CRT coefficient.
- the CRT coefficient.
getEncoded
public byte[] getEncoded()
Return a PKCS8 representation of the key. The sequence returned
represents a full PrivateKeyInfo object.
- getEncoded in interface JCERSAPrivateKey
- a PKCS8 representation of the key.
getFormat
public String getFormat()
return the encoding format we produce in getEncoded().
- getFormat in interface JCERSAPrivateKey
- the encoding format we produce in getEncoded().
getPrimeExponentP
public BigInteger getPrimeExponentP()
return the prime exponent for P.
- the prime exponent for P.
getPrimeExponentQ
public BigInteger getPrimeExponentQ()
return the prime exponent for Q.
- the prime exponent for Q.
getPrimeP
public BigInteger getPrimeP()
return the prime P.
- the prime P.
getPrimeQ
public BigInteger getPrimeQ()
return the prime Q.
- the prime Q.
getPublicExponent
public BigInteger getPublicExponent()
return the public exponent.
- the public exponent.
toString
public String toString()