public class

JCERSAPrivateCrtKey

extends JCERSAPrivateKey
implements RSAPrivateCrtKey
java.lang.Object
   ↳ org.bouncycastle.jce.provider.JCERSAPrivateKey
     ↳ org.bouncycastle.jce.provider.JCERSAPrivateCrtKey

Class Overview

A provider representation for a RSA private key, with CRT factors included.

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface java.security.PrivateKey
From interface java.security.interfaces.RSAPrivateCrtKey
From interface java.security.interfaces.RSAPrivateKey
[Expand]
Inherited Fields
From class org.bouncycastle.jce.provider.JCERSAPrivateKey
Public Methods
boolean equals(Object o)
BigInteger getCrtCoefficient()
return the CRT coefficient.
byte[] getEncoded()
Return a PKCS8 representation of the key.
String getFormat()
return the encoding format we produce in getEncoded().
BigInteger getPrimeExponentP()
return the prime exponent for P.
BigInteger getPrimeExponentQ()
return the prime exponent for Q.
BigInteger getPrimeP()
return the prime P.
BigInteger getPrimeQ()
return the prime Q.
BigInteger getPublicExponent()
return the public exponent.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class org.bouncycastle.jce.provider.JCERSAPrivateKey
From class java.lang.Object
From interface java.security.Key
From interface java.security.interfaces.RSAKey
From interface java.security.interfaces.RSAPrivateCrtKey
From interface java.security.interfaces.RSAPrivateKey
From interface org.bouncycastle.jce.interfaces.PKCS12BagAttributeCarrier

Public Methods

public boolean equals (Object o)

public BigInteger getCrtCoefficient ()

return the CRT coefficient.

Returns
  • the CRT coefficient.

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.

public String getFormat ()

return the encoding format we produce in getEncoded().

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

public BigInteger getPrimeExponentP ()

return the prime exponent for P.

Returns
  • the prime exponent for P.

public BigInteger getPrimeExponentQ ()

return the prime exponent for Q.

Returns
  • the prime exponent for Q.

public BigInteger getPrimeP ()

return the prime P.

Returns
  • the prime P.

public BigInteger getPrimeQ ()

return the prime Q.

Returns
  • the prime Q.

public BigInteger getPublicExponent ()

return the public exponent.

Returns
  • the public exponent.

public int hashCode ()

public String toString ()