java.lang.Object
java.security.spec.RSAPublicKeySpec
- 所有已实现的接口:
KeySpec
此类指定 RSA 公钥。
- 自从:
- 1.2
- 参见:
-
构造方法总结
构造方法构造方法描述RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent) 创建一个新的 RSAPublicKeySpec。RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params) 使用附加密钥参数创建新的 RSAPublicKeySpec。 -
方法总结
修饰符和类型方法描述返回模数。返回与此键关联的参数,如果不存在则可能为 null。返回公共指数。
-
构造方法详细信息
-
RSAPublicKeySpec
创建一个新的 RSAPublicKeySpec。- 参数:
modulus- 模数publicExponent- 公共指数
-
RSAPublicKeySpec
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params) 使用附加密钥参数创建新的 RSAPublicKeySpec。- 参数:
modulus- 模数publicExponent- 公共指数params- 与此键关联的参数,可能为空- 自从:
- 11
-
-
方法详情
-
getModulus
返回模数。- 返回:
- 模数
-
getPublicExponent
返回公共指数。- 返回:
- 公共指数
-
getParams
返回与此键关联的参数,如果不存在则可能为 null。- 返回:
- 与此键关联的参数
- 自从:
- 11
-