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