public class RSAPublicKeySpec extends java.lang.Object implements KeySpec
| Constructor and Description |
|---|
RSAPublicKeySpec(java.math.BigInteger modulus,
java.math.BigInteger publicExponent)
Constructs a new RSAPublicKeySpec with the specified
modulus and publicExponent.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getModulus()
Gets the RSA modulus.
|
java.math.BigInteger |
getPublicExponent()
Gets the RSA public exponent.
|
public RSAPublicKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExponent)
modulus - the RSA moduluspublicExponent - the public key exponentpublic java.math.BigInteger getModulus()
public java.math.BigInteger getPublicExponent()