JavaTM Platform
Standard Ed. 6

クラス
java.security.SecureRandom の使用

SecureRandom を使用しているパッケージ
java.security セキュリティーフレームワークのクラスとインタフェースを提供します。 
java.security.interfaces RSA Laboratory Technical Note PKCS#1 で定義されている RSA (Rivest, Shamir andAdleman AsymmetricCipher algorithm) 鍵と、NIST の FIPS-186 で定義されている DSA (Digital SignatureAlgorithm) 鍵を生成するためのインタフェースを提供します。 
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 KeyPairGeneratorSpi.initialize(AlgorithmParameterSpec params, SecureRandom random)
          指定されたパラメータセットとユーザーが提供する乱数発生の元を使って、鍵ペアジェネレータを初期化します。
 void KeyPairGenerator.initialize(AlgorithmParameterSpec params, SecureRandom random)
          指定されたパラメータセットと乱数発生の元を使って鍵ペアジェネレータを初期化します。
abstract  void KeyPairGeneratorSpi.initialize(int keysize, SecureRandom random)
          デフォルトのパラメータセットを使って、特定のキーサイズに対して鍵ペアジェネレータを初期化します。
 void KeyPairGenerator.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)
          鍵、アルゴリズムパラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。
protected abstract  void CipherSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
          鍵、アルゴリズムパラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。
protected abstract  void CipherSpi.engineInit(int opmode, Key key, SecureRandom random)
          鍵と乱数発生の元を使用してこの暗号を初期化します。
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)
          この暗号を、検証操作のために指定された公開鍵および乱数発生の元を使って初期化します。
 void Cipher.init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
          鍵、アルゴリズムパラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。
 void Cipher.init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
          鍵、アルゴリズムパラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。
 void Cipher.init(int opmode, Key key, SecureRandom random)
          鍵と乱数発生の元を使用してこの暗号を初期化します。
 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

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。