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
Modifier and Type Method Description BigIntegergetModulus()Returns the modulusn.BigIntegergetPublicExponent()Returns the public exponentd.
-
Constructor Details
-
RSAPublicKeySpec
Creates a newRSAPublicKeySpecwith the specified modulus and public exponent.- Parameters:
modulus- the modulusn.publicExponent- the public exponentd.
-
-
Method Details
-
getModulus
Returns the modulusn.- Returns:
- the modulus
n.
-
getPublicExponent
Returns the public exponentd.- Returns:
- the public exponent
d.
-