public
class
RSAPublicKeySpec
extends Object
implements
KeySpec
java.lang.Object | |
↳ | java.security.spec.RSAPublicKeySpec |
This class specifies an RSA public key.
Public constructors | |
---|---|
RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
Creates a new RSAPublicKeySpec. |
Public methods | |
---|---|
BigInteger
|
getModulus()
Returns the modulus. |
BigInteger
|
getPublicExponent()
Returns the public exponent. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
RSAPublicKeySpec (BigInteger modulus, BigInteger publicExponent)
Creates a new RSAPublicKeySpec.
Parameters | |
---|---|
modulus |
BigInteger :
the modulus |
publicExponent |
BigInteger :
the public exponent
|
BigInteger getModulus ()
Returns the modulus.
Returns | |
---|---|
BigInteger |
the modulus |
BigInteger getPublicExponent ()
Returns the public exponent.
Returns | |
---|---|
BigInteger |
the public exponent |