Class RSAPrivateKeySpec

java.lang.Object
java.security.spec.RSAPrivateKeySpec
All Implemented Interfaces:
KeySpec
Direct Known Subclasses:
RSAMultiPrimePrivateCrtKeySpec, RSAPrivateCrtKeySpec

public class RSAPrivateKeySpec
extends Object
implements KeySpec
The key specification of a RSA private key.

Defined in the PKCS #1 v2.1 standard

  • Constructor Details

    • RSAPrivateKeySpec

      public RSAPrivateKeySpec​(BigInteger modulus, BigInteger privateExponent)
      Creates a new RSAPrivateKeySpec with the specified modulus and private exponent.
      Parameters:
      modulus - the modulus n.
      privateExponent - the private exponent e
  • Method Details