Package java.security.spec
Class RSAPublicKeySpec
- java.lang.Object
-
- java.security.spec.RSAPublicKeySpec
-
- All Implemented Interfaces:
KeySpec
public class RSAPublicKeySpec extends Object implements KeySpec
The key specification of a RSA public key.Defined in the PKCS #1 v2.1 standard.
-
-
Constructor Summary
Constructors Constructor Description RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)Creates a newRSAPublicKeySpecwith the specified modulus and public exponent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetModulus()Returns the modulusn.BigIntegergetPublicExponent()Returns the public exponentd.
-
-
-
Constructor Detail
-
RSAPublicKeySpec
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
Creates a newRSAPublicKeySpecwith the specified modulus and public exponent.- Parameters:
modulus- the modulusn.publicExponent- the public exponentd.
-
-
Method Detail
-
getModulus
public BigInteger getModulus()
Returns the modulusn.- Returns:
- the modulus
n.
-
getPublicExponent
public BigInteger getPublicExponent()
Returns the public exponentd.- Returns:
- the public exponent
d.
-
-