- java.lang.Object
-
- java.security.spec.RSAPublicKeySpec
-
- 实现的所有接口
-
KeySpec
public class RSAPublicKeySpec extends Object implements KeySpec
此类指定RSA公钥。- 从以下版本开始:
- 1.2
- 另请参见:
-
Key,KeyFactory,KeySpec,X509EncodedKeySpec,RSAPrivateKeySpec,RSAPrivateCrtKeySpec
-
-
构造方法摘要
构造方法 构造器 描述 RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)创建一个新的RSAPublicKeySpec。RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)使用其他关键参数创建新的RSAPublicKeySpec。
-
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 BigIntegergetModulus()返回模数。AlgorithmParameterSpecgetParams()返回与此键关联的参数,如果不存在,则可以为null。BigIntegergetPublicExponent()返回公共指数。
-
-
-
构造方法详细信息
-
RSAPublicKeySpec
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
创建一个新的RSAPublicKeySpec。- 参数
-
modulus- 模数 -
publicExponent- 公共指数
-
RSAPublicKeySpec
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)
使用其他关键参数创建新的RSAPublicKeySpec。- 参数
-
modulus- 模数 -
publicExponent- 公共指数 -
params- 与此键关联的参数可以为null - 从以下版本开始:
- 11
-
-
方法详细信息
-
getModulus
public BigInteger getModulus()
返回模数。- 结果
- 模数
-
getPublicExponent
public BigInteger getPublicExponent()
返回公共指数。- 结果
- 公众指数
-
getParams
public AlgorithmParameterSpec getParams()
返回与此键关联的参数,如果不存在,则可以为null。- 结果
- 与此键关联的参数
- 从以下版本开始:
- 11
-
-