JavaTM 2 Platform
Standard Ed. 6

java.security.spec
类 RSAKeyGenParameterSpec

java.lang.Object
  继承者 java.security.spec.RSAKeyGenParameterSpec
所有已实现的接口:
AlgorithmParameterSpec

public class RSAKeyGenParameterSpec
extends Object
implements AlgorithmParameterSpec

此类指定用于生成 RSA 密钥对的参数集。

从以下版本开始:
1.3
另请参见:
KeyPairGenerator.initialize(java.security.spec.AlgorithmParameterSpec)

字段摘要
static BigInteger F0
          公用指数值 F0 = 3。
static BigInteger F4
          公用指数值 F4 = 65537。
 
构造方法摘要
RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)
          构造一个具有给定密钥大小和公用指数值的新的 RSAParameterSpec 对象。
 
方法摘要
 int getKeysize()
          返回密钥大小。
 BigInteger getPublicExponent()
          返回公用指数值。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

F0

public static final BigInteger F0
公用指数值 F0 = 3。


F4

public static final BigInteger F4
公用指数值 F4 = 65537。

构造方法详细信息

RSAKeyGenParameterSpec

public RSAKeyGenParameterSpec(int keysize,
                              BigInteger publicExponent)
构造一个具有给定密钥大小和公用指数值的新的 RSAParameterSpec 对象。

参数:
keysize - 系数大小(用位数指定)
publicExponent - 公用指数
方法详细信息

getKeysize

public int getKeysize()
返回密钥大小。

返回:
密钥大小。

getPublicExponent

public BigInteger getPublicExponent()
返回公用指数值。

返回:
公用指数值。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only