| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 SecureRandom 的软件包 | |
|---|---|
| java.security | 为安全框架提供类和接口。 | 
| java.security.interfaces | 提供的接口用于生成 RSA Laboratory Technical Note PKCS#1 中定义的 RSA(Rivest、Shamir 和 Adleman AsymmetricCipher 算法)密钥,以及 NIST 的 FIPS-186 中定义的 DSA(数字签名算法)密钥。 | 
| javax.crypto | 为加密操作提供类和接口。 | 
| javax.net.ssl | 提供用于安全套接字包的类。 | 
| java.security 中 SecureRandom 的使用 | 
|---|
| 声明为 SecureRandom 的 java.security 中的字段 | |
|---|---|
protected  SecureRandom | 
SignatureSpi.appRandom
应用程序指定的随机源。  | 
| 返回 SecureRandom 的 java.security 中的方法 | |
|---|---|
static SecureRandom | 
SecureRandom.getInstance(String algorithm)
返回实现指定随机数生成器 (RNG) 算法的 SecureRandom 对象。  | 
static SecureRandom | 
SecureRandom.getInstance(String algorithm,
            Provider provider)
返回实现指定随机数生成器 (RNG) 算法的 SecureRandom 对象。  | 
static SecureRandom | 
SecureRandom.getInstance(String algorithm,
            String provider)
返回实现指定随机数生成器 (RNG) 算法的 SecureRandom 对象。  | 
| 参数类型为 SecureRandom 的 java.security 中的方法 | |
|---|---|
protected abstract  void | 
AlgorithmParameterGeneratorSpi.engineInit(AlgorithmParameterSpec genParamSpec,
           SecureRandom random)
利用特定于算法的参数生成值的集合初始化此参数生成器。  | 
protected abstract  void | 
AlgorithmParameterGeneratorSpi.engineInit(int size,
           SecureRandom random)
针对某个特定大小和随机源初始化此参数生成器。  | 
protected  void | 
SignatureSpi.engineInitSign(PrivateKey privateKey,
               SecureRandom random)
通过用于签名操作的指定私钥和随机源初始化此签名对象。  | 
 void | 
AlgorithmParameterGenerator.init(AlgorithmParameterSpec genParamSpec,
     SecureRandom random)
利用特定于算法的参数生成值集合初始化此参数生成器。  | 
 void | 
AlgorithmParameterGenerator.init(int size,
     SecureRandom random)
针对某个特定大小和随机源初始化此参数生成器。  | 
 void | 
KeyPairGenerator.initialize(AlgorithmParameterSpec params,
           SecureRandom random)
使用给定参数集合和随机源初始化密钥对生成器。  | 
 void | 
KeyPairGeneratorSpi.initialize(AlgorithmParameterSpec params,
           SecureRandom random)
用指定参数集合和用户提供的随机源初始化密钥对生成器。  | 
 void | 
KeyPairGenerator.initialize(int keysize,
           SecureRandom random)
使用给定的随机源(和默认的参数集合)初始化确定密钥大小的密钥对生成器。  | 
abstract  void | 
KeyPairGeneratorSpi.initialize(int keysize,
           SecureRandom random)
使用默认参数集初始化确定密钥大小的密钥对生成器。  | 
 void | 
Signature.initSign(PrivateKey privateKey,
         SecureRandom random)
初始化这个用于签名的对象。  | 
| java.security.interfaces 中 SecureRandom 的使用 | 
|---|
| 参数类型为 SecureRandom 的 java.security.interfaces 中的方法 | |
|---|---|
 void | 
DSAKeyPairGenerator.initialize(DSAParams params,
           SecureRandom random)
使用 DSA 系列参数(p、q 和 g)和可选 SecureRandom 位源初始化密钥对生成器。  | 
 void | 
DSAKeyPairGenerator.initialize(int modlen,
           boolean genParams,
           SecureRandom random)
使用给定系数长度(而不是参数)和可选 SecureRandom 位源初始化密钥对生成器。  | 
| javax.crypto 中 SecureRandom 的使用 | 
|---|
| 参数类型为 SecureRandom 的 javax.crypto 中的方法 | |
|---|---|
protected abstract  void | 
KeyGeneratorSpi.engineInit(AlgorithmParameterSpec params,
           SecureRandom random)
用指定参数集和用户提供的随机源初始化密钥生成器。  | 
protected abstract  void | 
CipherSpi.engineInit(int opmode,
           Key key,
           AlgorithmParameterSpec params,
           SecureRandom random)
用一个密钥、一组算法参数和一个随机源初始化此 cipher。  | 
protected abstract  void | 
CipherSpi.engineInit(int opmode,
           Key key,
           AlgorithmParameters params,
           SecureRandom random)
用一个密钥、一组算法参数和一个随机源初始化此 cipher。  | 
protected abstract  void | 
CipherSpi.engineInit(int opmode,
           Key key,
           SecureRandom random)
用密钥和随机源初始化此 cipher。  | 
protected abstract  void | 
KeyGeneratorSpi.engineInit(int keysize,
           SecureRandom random)
使用给定随机源初始化此密钥生成器,以获取确定的密钥长度。  | 
protected abstract  void | 
KeyAgreementSpi.engineInit(Key key,
           AlgorithmParameterSpec params,
           SecureRandom random)
用给定密钥、算法参数集和随机源初始化此密钥协定。  | 
protected abstract  void | 
KeyAgreementSpi.engineInit(Key key,
           SecureRandom random)
用给定密钥和随机源初始化此密钥协定。  | 
protected abstract  void | 
KeyGeneratorSpi.engineInit(SecureRandom random)
初始化该密钥生成器。  | 
 void | 
KeyGenerator.init(AlgorithmParameterSpec params,
     SecureRandom random)
用指定参数集和用户提供的随机源初始化此密钥生成器。  | 
 void | 
Cipher.init(int opmode,
     Certificate certificate,
     SecureRandom random)
用取自给定证书的公钥和随机源初始化此 Cipher。  | 
 void | 
Cipher.init(int opmode,
     Key key,
     AlgorithmParameterSpec params,
     SecureRandom random)
用一个密钥、一组算法参数和一个随机源初始化此 Cipher。  | 
 void | 
Cipher.init(int opmode,
     Key key,
     AlgorithmParameters params,
     SecureRandom random)
用一个密钥、一组算法参数和一个随机源初始化此 Cipher。  | 
 void | 
Cipher.init(int opmode,
     Key key,
     SecureRandom random)
用密钥和随机源初始化此 Cipher。  | 
 void | 
KeyGenerator.init(int keysize,
     SecureRandom random)
使用用户提供的随机源初始化此密钥生成器,使其具有确定的密钥大小。  | 
 void | 
KeyAgreement.init(Key key,
     AlgorithmParameterSpec params,
     SecureRandom random)
用给定密钥、算法参数集和随机源初始化此密钥协定。  | 
 void | 
KeyAgreement.init(Key key,
     SecureRandom random)
用给定密钥和随机源初始化此密钥协议。  | 
 void | 
KeyGenerator.init(SecureRandom random)
初始化此密钥生成器。  | 
| javax.net.ssl 中 SecureRandom 的使用 | 
|---|
| 参数类型为 SecureRandom 的 javax.net.ssl 中的方法 | |
|---|---|
protected abstract  void | 
SSLContextSpi.engineInit(KeyManager[] km,
           TrustManager[] tm,
           SecureRandom sr)
初始化此上下文。  | 
 void | 
SSLContext.init(KeyManager[] km,
     TrustManager[] tm,
     SecureRandom random)
初始化此上下文。  | 
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。