Bouncy Castle Cryptography Library 1.85.2

org.bouncycastle.crypto.params
Class RSAPrivateCrtKeyParameters

java.lang.Object
  extended byorg.bouncycastle.crypto.params.AsymmetricKeyParameter
      extended byorg.bouncycastle.crypto.params.RSAKeyParameters
          extended byorg.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
All Implemented Interfaces:
CipherParameters, javax.security.auth.Destroyable

public class RSAPrivateCrtKeyParameters
extends RSAKeyParameters


Constructor Summary
RSAPrivateCrtKeyParameters(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger dP, java.math.BigInteger dQ, java.math.BigInteger qInv)
           
RSAPrivateCrtKeyParameters(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger dP, java.math.BigInteger dQ, java.math.BigInteger qInv, boolean isInternal)
           
 
Method Summary
 void destroy()
          Destroy this object, dropping its references to the CRT factors and exponents along with the inherited private exponent.
 java.math.BigInteger getDP()
           
 java.math.BigInteger getDQ()
           
 java.math.BigInteger getP()
           
 java.math.BigInteger getPublicExponent()
           
 java.math.BigInteger getQ()
           
 java.math.BigInteger getQInv()
           
 
Methods inherited from class org.bouncycastle.crypto.params.RSAKeyParameters
getExponent, getModulus, isDestroyed, validateModulus
 
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAPrivateCrtKeyParameters

public RSAPrivateCrtKeyParameters(java.math.BigInteger modulus,
                                  java.math.BigInteger publicExponent,
                                  java.math.BigInteger privateExponent,
                                  java.math.BigInteger p,
                                  java.math.BigInteger q,
                                  java.math.BigInteger dP,
                                  java.math.BigInteger dQ,
                                  java.math.BigInteger qInv)

RSAPrivateCrtKeyParameters

public RSAPrivateCrtKeyParameters(java.math.BigInteger modulus,
                                  java.math.BigInteger publicExponent,
                                  java.math.BigInteger privateExponent,
                                  java.math.BigInteger p,
                                  java.math.BigInteger q,
                                  java.math.BigInteger dP,
                                  java.math.BigInteger dQ,
                                  java.math.BigInteger qInv,
                                  boolean isInternal)
Method Detail

getPublicExponent

public java.math.BigInteger getPublicExponent()

getP

public java.math.BigInteger getP()

getQ

public java.math.BigInteger getQ()

getDP

public java.math.BigInteger getDP()

getDQ

public java.math.BigInteger getDQ()

getQInv

public java.math.BigInteger getQInv()

destroy

public void destroy()
Destroy this object, dropping its references to the CRT factors and exponents along with the inherited private exponent. The (public) modulus and public exponent are retained.

As BigInteger is immutable the values cannot be zeroized in place; destruction drops the internal references so the values become unreachable (cleared on garbage collection). After destruction the secret-bearing accessors throw IllegalStateException.

Specified by:
destroy in interface javax.security.auth.Destroyable
Overrides:
destroy in class RSAKeyParameters

Bouncy Castle Cryptography Library 1.85.2