クラス
java.security.SecureRandomの使用
SecureRandomを使用するパッケージ
パッケージ
説明
セキュリティ・フレームワークのクラスとインタフェースを提供します。
RSA Laboratory Technical Note PKCS#1で定義されているRSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm)キーと、NISTのFIPS-186で定義されているDSA (Digital Signature Algorithm)キーを生成するためのインタフェースを提供します。
暗号化操作のクラスとインタフェースを提供します。
セキュア・ソケット・パッケージのクラスを提供します。
-
java.securityでのSecureRandomの使用
SecureRandomとして宣言されたjava.securityのフィールドSecureRandomを返すjava.securityのメソッド修飾子と型メソッド説明static SecureRandomSecureRandom.getInstance(String algorithm) 指定された乱数ジェネレータの(RNG)アルゴリズムを実装するSecureRandomオブジェクトを返します。static SecureRandomSecureRandom.getInstance(String algorithm, String provider) 指定された乱数ジェネレータの(RNG)アルゴリズムを実装するSecureRandomオブジェクトを返します。static SecureRandomSecureRandom.getInstance(String algorithm, Provider provider) 指定された乱数ジェネレータの(RNG)アルゴリズムを実装するSecureRandomオブジェクトを返します。static SecureRandomSecureRandom.getInstance(String algorithm, SecureRandomParameters params) 指定された乱数ジェネレータの(RNG)アルゴリズムを実装し、指定されたSecureRandomParametersリクエストをサポートするSecureRandomオブジェクトを返します。static SecureRandomSecureRandom.getInstance(String algorithm, SecureRandomParameters params, String provider) 指定された乱数ジェネレータの(RNG)アルゴリズムを実装し、指定されたSecureRandomParametersリクエストをサポートするSecureRandomオブジェクトを返します。static SecureRandomSecureRandom.getInstance(String algorithm, SecureRandomParameters params, Provider provider) 指定された乱数ジェネレータの(RNG)アルゴリズムを実装し、指定されたSecureRandomParametersリクエストをサポートするSecureRandomオブジェクトを返します。static SecureRandomSecureRandom.getInstanceStrong()securerandom.strongAlgorithmsSecurityプロパティで指定されたアルゴリズムまたはプロバイダを使用して選択されたSecureRandomオブジェクトを返します。型SecureRandomのパラメータを持つjava.securityのメソッド修飾子と型メソッド説明protected abstract voidAlgorithmParameterGeneratorSpi.engineInit(int size, SecureRandom random) 特定のサイズと乱数発生の元に対して、パラメータ・ジェネレータを初期化します。protected abstract voidAlgorithmParameterGeneratorSpi.engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) アルゴリズム固有型のパラメータ生成値のセットで、パラメータ・ジェネレータを初期化します。protected voidSignatureSpi.engineInitSign(PrivateKey privateKey, SecureRandom random) 指定された秘密キーおよび署名操作のランダム性のソースを使用して、このSignatureオブジェクトを初期化します。final voidAlgorithmParameterGenerator.init(int size, SecureRandom random) 特定のサイズと乱数発生の元に対して、パラメータ・ジェネレータを初期化します。final voidAlgorithmParameterGenerator.init(AlgorithmParameterSpec genParamSpec, SecureRandom random) アルゴリズム固有型のパラメータ生成値のセットで、パラメータ・ジェネレータを初期化します。voidKeyPairGenerator.initialize(int keysize, SecureRandom random) 任意のキーのサイズに対するキー・ペア・ジェネレータを初期化します。指定された乱数発生の元と、デフォルトのパラメータ・セットを使用します。voidKeyPairGenerator.initialize(AlgorithmParameterSpec params, SecureRandom random) 指定されたパラメータ・セットと乱数発生の元を使ってキー・ペア・ジェネレータを初期化します。abstract voidKeyPairGeneratorSpi.initialize(int keysize, SecureRandom random) デフォルトのパラメータ・セットを使って、特定のキー・サイズに対してキー・ペア・ジェネレータを初期化します。voidKeyPairGeneratorSpi.initialize(AlgorithmParameterSpec params, SecureRandom random) 指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、キー・ペア・ジェネレータを初期化します。final voidSignature.initSign(PrivateKey privateKey, SecureRandom random) 署名用にこのオブジェクトを初期化します。 -
java.security.interfacesでのSecureRandomの使用
型SecureRandomのパラメータを持つjava.security.interfacesのメソッド修飾子と型メソッド説明voidDSAKeyPairGenerator.initialize(int modlen, boolean genParams, SecureRandom random) 指定されたモジュラスの長さ(パラメータではない)のキー・ペア・ジェネレータとオプションのSecureRandomビット・ソースを初期化します。voidDSAKeyPairGenerator.initialize(DSAParams params, SecureRandom random) DSAファミリのパラメータ(p、q、およびg)とオプションのSecureRandomビット・ソースを使用して、キー・ペア・ジェネレータを初期化します。 -
javax.cryptoでのSecureRandomの使用
型SecureRandomのパラメータを持つjavax.cryptoのメソッド修飾子と型メソッド説明protected abstract voidCipherSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) このCipherSpiオブジェクトをキー、アルゴリズム・パラメータのセットおよびランダム性のソースで初期化します。protected abstract voidCipherSpi.engineInit(int opmode, Key key, SecureRandom random) このCipherSpiオブジェクトをキーとランダム性のソースで初期化します。protected abstract voidCipherSpi.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) このCipherSpiオブジェクトをキー、アルゴリズム・パラメータのセットおよびランダム性のソースで初期化します。protected abstract voidKeyAgreementSpi.engineInit(Key key, SecureRandom random) 指定されたキーと乱数発生の元でこのキー合意を初期化します。protected abstract voidKeyAgreementSpi.engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) 指定されたキー、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこのキー合意を初期化します。protected abstract voidKeyGeneratorSpi.engineInit(int keysize, SecureRandom random) 指定された乱数発生の元を使って、このキー・ジェネレータを特定のキー・サイズに応じて初期化します。protected abstract voidKeyGeneratorSpi.engineInit(SecureRandom random) キー・ジェネレータを初期化します。protected abstract voidKeyGeneratorSpi.engineInit(AlgorithmParameterSpec params, SecureRandom random) 指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、キー・ジェネレータを初期化します。KEMSpi.engineNewEncapsulator(PublicKey publicKey, AlgorithmParameterSpec spec, SecureRandom secureRandom) KEMセンダー側にKEMエンカプセレータを作成します。final voidCipher.init(int opmode, Certificate certificate, SecureRandom random) このCipherオブジェクトを、指定された証明書の公開キーとランダム性のソースで初期化します。final voidCipher.init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) このCipherオブジェクトをキー、アルゴリズム・パラメータのセットおよびランダム性のソースで初期化します。final voidCipher.init(int opmode, Key key, SecureRandom random) このCipherオブジェクトをキーとランダム性のソースで初期化します。final voidCipher.init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) このCipherオブジェクトをキー、アルゴリズム・パラメータのセットおよびランダム性のソースで初期化します。final voidKeyAgreement.init(Key key, SecureRandom random) 指定されたキーと乱数発生の元でこのキー合意を初期化します。final voidKeyAgreement.init(Key key, AlgorithmParameterSpec params, SecureRandom random) 指定されたキー、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこのキー合意を初期化します。final voidKeyGenerator.init(int keysize, SecureRandom random) ユーザーが提供する乱数発生の元を使って、このキー・ジェネレータを特定のキー・サイズに応じて初期化します。final voidKeyGenerator.init(SecureRandom random) このキー・ジェネレータを初期化します。final voidKeyGenerator.init(AlgorithmParameterSpec params, SecureRandom random) 指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、このキー・ジェネレータを初期化します。KEM.newEncapsulator(PublicKey publicKey, SecureRandom secureRandom) KEMセンダー側にKEMエンカプセレータを作成します。KEM.newEncapsulator(PublicKey publicKey, AlgorithmParameterSpec spec, SecureRandom secureRandom) KEMセンダー側にKEMエンカプセレータを作成します。 -
javax.net.sslでのSecureRandomの使用
型SecureRandomのパラメータを持つjavax.net.sslのメソッド修飾子と型メソッド説明protected abstract voidSSLContextSpi.engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr) このコンテキストを初期化します。final voidSSLContext.init(KeyManager[] km, TrustManager[] tm, SecureRandom random) このコンテキストを初期化します。