|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--java.security.AlgorithmParameterGenerator
AlgorithmParameterGenerator クラスは、特定のアルゴリズムで使われるパラメータのセットを生成するために使用されます。パラメータジェネレータは、getInstance ファクトリメソッド (指定したクラスのインスタンスを返す static メソッド) を使って構築されます。
パラメータを生成するオブジェクトは、アルゴリズムに依存しない方法、およびアルゴリズム特定型の方法の 2 通りの方法で初期化できます。
クライアントが init メソッドの呼び出しで、明示的に AlgorithmParameterGenerator を初期化しない場合には、各プロバイダはデフォルトの初期化を提供およびドキュメント化する必要があります。たとえば Sun のプロバイダのデフォルトでは、1,024 ビットのモジュラスプライムサイズを使って DSA パラメータを生成します。
AlgorithmParameters,
AlgorithmParameterSpec| コンストラクタの概要 | |
protected |
AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi,
Provider provider,
String algorithm)
AlgorithmParameterGenerator オブジェクトを作成します。 |
| メソッドの概要 | |
AlgorithmParameters |
generateParameters()
パラメータを生成します。 |
String |
getAlgorithm()
パラメータジェネレータが関連付けられているアルゴリズムの標準名を返します。 |
static AlgorithmParameterGenerator |
getInstance(String algorithm)
指定されたダイジェストアルゴリズムを実装する AlgorithmParameterGenerator オブジェクトを作成します。 |
static AlgorithmParameterGenerator |
getInstance(String algorithm,
String provider)
指定されたプロバイダから提供される、要求したアルゴリズムの AlgorithmParameterGenerator オブジェクトを作成します。 |
Provider |
getProvider()
アルゴリズムパラメータジェネレータオブジェクトのプロバイダを返します。 |
void |
init(AlgorithmParameterSpec genParamSpec)
アルゴリズム特定型のパラメータ生成値のセットで、パラメータジェネレータを初期化します。 |
void |
init(AlgorithmParameterSpec genParamSpec,
SecureRandom random)
アルゴリズム特定型のパラメータ生成値のセットで、パラメータジェネレータを初期化します。 |
void |
init(int size)
特定のサイズに対して、パラメータジェネレータを初期化します。 |
void |
init(int size,
SecureRandom random)
特定のサイズと乱数発生の元に対して、パラメータジェネレータを初期化します。 |
| クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| コンストラクタの詳細 |
protected AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi,
Provider provider,
String algorithm)
paramGenSpi - 委譲provider - プロバイダalgorithm - アルゴリズム| メソッドの詳細 |
public final String getAlgorithm()
public static AlgorithmParameterGenerator getInstance(String algorithm)
throws NoSuchAlgorithmException
algorithm - このパラメータジェネレータが関連付けられているアルゴリズムの文字列名
public static AlgorithmParameterGenerator getInstance(String algorithm,
String provider)
throws NoSuchAlgorithmException,
NoSuchProviderException
algorithm - アルゴリズムの文字列名provider - プロバイダの文字列名Providerpublic final Provider getProvider()
public final void init(int size)
SecureRandom の実装が、乱数発生の元として使用されます 。SecureRandom の実装を提供するプロバイダがインストールされていない場合は、システムが提供する乱数発生の元が使用されます。size - サイズ (ビット数)
public final void init(int size,
SecureRandom random)
size - サイズ (ビット数)random - 乱数発生の元
public final void init(AlgorithmParameterSpec genParamSpec)
throws InvalidAlgorithmParameterException
SecureRandom の実装が、乱数発生の元として使用されます 。SecureRandom の実装を提供するプロバイダがインストールされていない場合は、システムが提供する乱数発生の元が使用されます。genParamSpec - アルゴリズム特定型のパラメータ生成値のセット
public final void init(AlgorithmParameterSpec genParamSpec,
SecureRandom random)
throws InvalidAlgorithmParameterException
genParamSpec - アルゴリズム特定型のパラメータ生成値のセットrandom - 乱数発生の元public final AlgorithmParameters generateParameters()
|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||