java.security.spec
Class RSAPublicKeySpecjava.lang.Object | +--java.security.spec.RSAPublicKeySpec
- All Implemented Interfaces:
- KeySpec
- public class RSAPublicKeySpec
- extends Object
- implements KeySpec
This class specifies an RSA public key.
- See Also:
- Key, KeyFactory, KeySpec, X509EncodedKeySpec, RSAPrivateKeySpec, RSAPrivateCrtKeySpec
Constructor Summary
RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
Creates a new RSAPublicKeySpec.
Method Summary
BigInteger getModulus()
Returns the modulus.BigInteger getPublicExponent()
Returns the public exponent.
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
RSAPublicKeySpec
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
- Creates a new RSAPublicKeySpec.
- Parameters:
- modulus - the modulus
- publicExponent - the public exponent
Method Detail
getModulus
public BigInteger getModulus()
- Returns the modulus.
- Returns:
- the modulus
getPublicExponent
public BigInteger getPublicExponent()
- Returns the public exponent.
- Returns:
- the public exponent