Name
Class javax.crypto.spec.RSAPrivateKeySpec
Description
This class represents a private key for the RSA cipher algorithm,
specified as a modulus and a private exponent. Instances of this
class may be used with an appropriate KeyFactory
to generate PrivateKey
s.
Class Definition
public class javax.crypto.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
,
RSAPrivateKeyCrtSpec
Get Java Cryptography 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.