クラス
java.security.SecureRandomの使用
-
SecureRandomを使用しているパッケージ パッケージ 説明 java.security セキュリティ・フレームワークのクラスとインタフェースを提供します。java.security.interfaces RSA Laboratory Technical Note PKCS#1で定義されているRSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm)鍵と、NISTのFIPS-186で定義されているDSA (Digital Signature Algorithm)鍵を生成するためのインタフェースを提供します。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, String provider)
指定された乱数ジェネレータ(RNG)アルゴリズムを実装するSecureRandom
オブジェクトを返します。static SecureRandom
SecureRandom. getInstance(String algorithm, Provider provider)
指定された乱数ジェネレータ(RNG)アルゴリズムを実装するSecureRandom
オブジェクトを返します。static SecureRandom
SecureRandom. getInstance(String algorithm, SecureRandomParameters params)
指定された乱数ジェネレータ(RNG)アルゴリズムを実装し、指定されたSecureRandomParameters
リクエストをサポートするSecureRandom
オブジェクトを返します。static SecureRandom
SecureRandom. getInstance(String algorithm, SecureRandomParameters params, String provider)
指定された乱数ジェネレータ(RNG)アルゴリズムを実装し、指定されたSecureRandomParameters
リクエストをサポートするSecureRandom
オブジェクトを返します。static SecureRandom
SecureRandom. getInstance(String algorithm, SecureRandomParameters params, Provider provider)
指定された乱数ジェネレータ(RNG)アルゴリズムを実装し、指定されたSecureRandomParameters
リクエストをサポートするSecureRandom
オブジェクトを返します。static SecureRandom
SecureRandom. getInstanceStrong()
securerandom.strongAlgorithms
Security
プロパティで指定されたアルゴリズムまたはプロバイダを使用して選択されたSecureRandom
オブジェクトを返します。SecureRandom型のパラメータを持つjava.securityのメソッド 修飾子と型 メソッド 説明 protected abstract void
AlgorithmParameterGeneratorSpi. engineInit(int size, SecureRandom random)
特定のサイズと乱数発生の元に対して、パラメータ・ジェネレータを初期化します。protected abstract void
AlgorithmParameterGeneratorSpi. engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)
アルゴリズム固有型のパラメータ生成値のセットで、パラメータ・ジェネレータを初期化します。protected void
SignatureSpi. engineInitSign(PrivateKey privateKey, SecureRandom random)
署名オブジェクトを、署名操作のために指定された非公開鍵と乱数発生の元で初期化します。void
AlgorithmParameterGenerator. init(int size, SecureRandom random)
特定のサイズと乱数発生の元に対して、パラメータ・ジェネレータを初期化します。void
AlgorithmParameterGenerator. init(AlgorithmParameterSpec genParamSpec, SecureRandom random)
アルゴリズム固有型のパラメータ生成値のセットで、パラメータ・ジェネレータを初期化します。void
KeyPairGenerator. initialize(int keysize, SecureRandom random)
任意のキー・サイズ対する鍵ペア・ジェネレータを初期化します。指定された乱数発生の元と、デフォルトのパラメータ・セットを使用します。void
KeyPairGenerator. initialize(AlgorithmParameterSpec params, SecureRandom random)
指定されたパラメータ・セットと乱数発生の元を使って鍵ペア・ジェネレータを初期化します。abstract void
KeyPairGeneratorSpi. initialize(int keysize, SecureRandom random)
デフォルトのパラメータ・セットを使って、特定のキー・サイズに対して鍵ペア・ジェネレータを初期化します。void
KeyPairGeneratorSpi. initialize(AlgorithmParameterSpec params, SecureRandom random)
指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、鍵ペア・ジェネレータを初期化します。void
Signature. initSign(PrivateKey privateKey, SecureRandom random)
署名用にこのオブジェクトを初期化します。 -
java.security.interfacesでのSecureRandomの使用
SecureRandom型のパラメータを持つjava.security.interfacesのメソッド 修飾子と型 メソッド 説明 void
DSAKeyPairGenerator. initialize(int modlen, boolean genParams, SecureRandom random)
指定されたモジュラスの長さ(パラメータではない)の鍵ペア・ジェネレータとオプションのSecureRandomビット・ソースを初期化します。void
DSAKeyPairGenerator. initialize(DSAParams params, SecureRandom random)
DSAファミリのパラメータ(p、q、およびg)とオプションのSecureRandomビット・ソースを使用して、鍵ペア・ジェネレータを初期化します。 -
javax.cryptoでのSecureRandomの使用
SecureRandom型のパラメータを持つjavax.cryptoのメソッド 修飾子と型 メソッド 説明 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
CipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
鍵、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。protected abstract void
KeyAgreementSpi. engineInit(Key key, SecureRandom random)
指定された鍵と乱数発生の元でこの鍵合意を初期化します。protected abstract void
KeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
指定された鍵、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこの鍵合意を初期化します。protected abstract void
KeyGeneratorSpi. engineInit(int keysize, SecureRandom random)
指定された乱数発生の元を使って、この鍵ジェネレータを特定の鍵サイズに応じて初期化します。protected abstract void
KeyGeneratorSpi. engineInit(SecureRandom random)
鍵ジェネレータを初期化します。protected abstract void
KeyGeneratorSpi. engineInit(AlgorithmParameterSpec params, SecureRandom random)
指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、鍵ジェネレータを初期化します。void
Cipher. init(int opmode, Certificate certificate, SecureRandom random)
この暗号を、検証操作のために指定された公開鍵および乱数発生の元を使って初期化します。void
Cipher. init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
鍵、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。void
Cipher. init(int opmode, Key key, SecureRandom random)
鍵と乱数発生の元を使用してこの暗号を初期化します。void
Cipher. init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
鍵、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。void
KeyAgreement. init(Key key, SecureRandom random)
指定された鍵と乱数発生の元でこの鍵合意を初期化します。void
KeyAgreement. init(Key key, AlgorithmParameterSpec params, SecureRandom random)
指定された鍵、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこの鍵合意を初期化します。void
KeyGenerator. init(int keysize, SecureRandom random)
ユーザーが提供する乱数発生の元を使って、この鍵ジェネレータを特定の鍵サイズに応じて初期化します。void
KeyGenerator. init(SecureRandom random)
この鍵ジェネレータを初期化します。void
KeyGenerator. init(AlgorithmParameterSpec params, 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)
このコンテキストを初期化します。
-