java.lang.Object
java.security.spec.RSAKeyGenParameterSpec
- 所有已实现的接口:
AlgorithmParameterSpec
此类指定用于生成 RSA 密钥对的参数集。
- 自从:
- 1.3
- 参见:
-
字段摘要
字段 -
构造方法总结
构造方法构造方法描述RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) 根据给定的密钥大小、公共指数值和空密钥参数构造一个新的RSAKeyGenParameterSpec对象。RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams) 根据给定的密钥大小、公共指数值和密钥参数构造一个新的RSAKeyGenParameterSpec对象。 -
方法总结
修饰符和类型方法描述返回要与键关联的参数。int返回密钥大小。返回公共指数值。
-
字段详细信息
-
F0
公共指数值 F0 = 3。 -
F4
公共指数值 F4 = 65537。
-
-
构造方法详细信息
-
RSAKeyGenParameterSpec
根据给定的密钥大小、公共指数值和空密钥参数构造一个新的RSAKeyGenParameterSpec对象。- 参数:
keysize- 模数大小(以位数指定)publicExponent- 公共指数
-
RSAKeyGenParameterSpec
public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams) 根据给定的密钥大小、公共指数值和密钥参数构造一个新的RSAKeyGenParameterSpec对象。- 参数:
keysize- 模数大小(以位数指定)publicExponent- 公共指数keyParams- 关键参数,可能为空- 自从:
- 11
-
-
方法详情
-
getKeysize
public int getKeysize()返回密钥大小。- 返回:
- 密钥大小。
-
getPublicExponent
返回公共指数值。- 返回:
- 公共指数值。
-
getKeyParams
返回要与键关联的参数。- 返回:
- 关联的参数,如果不存在则可能为 null
- 自从:
- 11
-