public class RSAPublicKeySpec extends Object implements KeySpec
Defined in the PKCS #1 v2.1 standard.
Constructor and Description |
---|
RSAPublicKeySpec(BigInteger modulus,
BigInteger publicExponent)
Creates a new
RSAPublicKeySpec with the specified modulus and
public exponent. |
Modifier and Type | Method and Description |
---|---|
BigInteger |
getModulus()
Returns the modulus
n . |
BigInteger |
getPublicExponent()
Returns the public exponent
d . |
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
RSAPublicKeySpec
with the specified modulus and
public exponent.modulus
- the modulus n
.publicExponent
- the public exponent d
.public BigInteger getModulus()
n
.n
.public BigInteger getPublicExponent()
d
.d
.