public class RSAPublicKeySpec extends Objectimplements KeySpec
Key,
KeyFactory,
KeySpec,
X509EncodedKeySpec,
RSAPrivateKeySpec,
RSAPrivateCrtKeySpec
| Constructor and Description |
|---|
RSAPublicKeySpec(BigInteger
Creates a new RSAPublicKeySpec.
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getModulus()
Returns the modulus.
|
BigInteger |
getPublicExponent()
Returns the public exponent.
|
public RSAPublicKeySpec(BigIntegermodulus, BigInteger publicExponent)
modulus - the modulus
publicExponent - the public exponent
public BigIntegergetModulus()
public BigIntegergetPublicExponent()