org.bouncycastle.jce.provider

Class JCERSAPrivateCrtKey

public class JCERSAPrivateCrtKey extends JCERSAPrivateKey implements RSAPrivateCrtKey

A provider representation for a RSA private key, with CRT factors included.
Method Summary
booleanequals(Object o)
BigIntegergetCrtCoefficient()
return the CRT coefficient.
byte[]getEncoded()
Return a PKCS8 representation of the key.
StringgetFormat()
return the encoding format we produce in getEncoded().
BigIntegergetPrimeExponentP()
return the prime exponent for P.
BigIntegergetPrimeExponentQ()
return the prime exponent for Q.
BigIntegergetPrimeP()
return the prime P.
BigIntegergetPrimeQ()
return the prime Q.
BigIntegergetPublicExponent()
return the public exponent.
inthashCode()
StringtoString()

Method Detail

equals

public boolean equals(Object o)

getCrtCoefficient

public BigInteger getCrtCoefficient()
return the CRT coefficient.

Returns: the CRT coefficient.

getEncoded

public byte[] getEncoded()
Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.

Returns: a PKCS8 representation of the key.

getFormat

public String getFormat()
return the encoding format we produce in getEncoded().

Returns: the encoding format we produce in getEncoded().

getPrimeExponentP

public BigInteger getPrimeExponentP()
return the prime exponent for P.

Returns: the prime exponent for P.

getPrimeExponentQ

public BigInteger getPrimeExponentQ()
return the prime exponent for Q.

Returns: the prime exponent for Q.

getPrimeP

public BigInteger getPrimeP()
return the prime P.

Returns: the prime P.

getPrimeQ

public BigInteger getPrimeQ()
return the prime Q.

Returns: the prime Q.

getPublicExponent

public BigInteger getPublicExponent()
return the public exponent.

Returns: the public exponent.

hashCode

public int hashCode()

toString

public String toString()