Name

Class java.security.spec.RSAPrivateKeySpec

Synopsis

This class represents a key specification for an RSA private key; this specification uses a modulus and a private exponent. Instances of this class may be used with an appropriate key factory to generate private keys. Use of this class requires a third-party security provider.

Class Definition

public java.security.spec.RSAPrivateKeySpec
	extends java.lang.Object
	implements java.security.spec.KeySpec {

	// Constructors
	public RSAPrivateKeySpec(BigInteger, BigInteger);

	// Instance Methods
	public BigInteger getModulus();
	public BigInteger getPrivateExponent();
}

See also:

KeyFactory, KeySpec, PrivateKey

Get Java Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.