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