public class RSAPublicKeySpec extends Object implements KeySpec
Key
, KeyFactory
, KeySpec
, X509EncodedKeySpec
, RSAPrivateKeySpec
, RSAPrivateCrtKeySpec
Constructor and Description |
---|
RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
创建一个新的RSAPublicKeySpec。
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
getModulus()
返回模数。
|
BigInteger |
getPublicExponent()
返回公共指数。
|
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
modulus
- 模数
publicExponent
- 公众指数
public BigInteger getModulus()
public BigInteger getPublicExponent()