Name

Class javax.crypto.spec.RSAPublicKeySpec

Description

This class represents a public key for the RSA cipher algorithm, specified as a modulus and a public exponent. Instances of this class may be used with an appropriate KeyFactory to generate PublicKeys.

Class Definition

public class javax.crypto.spec.RSAPublicKeySpec
  extends java.lang.Object
  implements java.security.spec.KeySpec {

  // Constructors
  public RSAPublicKeySpec(BigInteger, BigInteger);

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

See Also

KeyFactory, KeySpec, PublicKey

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.