Uses of Class java.security.SecureRandom

Uses in package java.security

Fields of type java.security.SecureRandom

SecureRandom
Source of randomness.

Methods with parameter type java.security.SecureRandom

void
Initializes the parameter generator with the specified size and SecureRandom
void
Initializes the parameter generator with the specified AlgorithmParameterSpec and SecureRandom classes.
void
Initializes this instance with the private key and source of randomness for signing purposes.
void
Initializes this instance with the specified key-size and source of randomness.
void
Initializes this instance with the specified AlgorithmParameterSpec and source of randomness.
void
Initializes this class with the private key and source of randomness for signing purposes.
void
Initializes this instance for the specified key size and SecureRandom.
void
Initialize the KeyPairGeneratorSpi with the specified key size and source of randomness
void
Initializes this instance with the specified AlgorithmParameterSpec and SecureRandom.
void
Initialize the KeyPairGeneratorSpi with the specified AlgorithmParameterSpec and source of randomness This is a concrete method.

Methods with return type java.security.SecureRandom

SecureRandom
Returns an instance of a SecureRandom from the first provider that implements it.
SecureRandom
SecureRandom.getInstance(String algorithm, String provider)
Returns an instance of a SecureRandom for the specified algorithm from the named provider.
SecureRandom
SecureRandom.getInstance(String algorithm, Provider provider)
Returns an instance of a SecureRandom for the specified algorithm from the given provider.

Uses in package gnu.javax.crypto.jce.sig

Methods with parameter type java.security.SecureRandom

void
Initializes the parameter generator with the specified size and SecureRandom
void
Initializes the parameter generator with the specified AlgorithmParameterSpec and SecureRandom classes.
void
Initialize the KeyPairGeneratorSpi with the specified key size and source of randomness
void
Initialize the KeyPairGeneratorSpi with the specified AlgorithmParameterSpec and source of randomness This is a concrete method.

Uses in package gnu.java.security.jce.sig

Methods with parameter type java.security.SecureRandom

void
Initializes the parameter generator with the specified size and SecureRandom
void
Initializes the parameter generator with the specified AlgorithmParameterSpec and SecureRandom classes.
void
DSSKeyPairGeneratorSpi.initialize(int modlen, boolean genParams, SecureRandom random)
void
Initialize the KeyPairGeneratorSpi with the specified key size and source of randomness
void
Initialize the KeyPairGeneratorSpi with the specified key size and source of randomness
void
Initialize the KeyPairGeneratorSpi with the specified key size and source of randomness
void
void
Initialize the KeyPairGeneratorSpi with the specified AlgorithmParameterSpec and source of randomness This is a concrete method.
void
Initialize the KeyPairGeneratorSpi with the specified AlgorithmParameterSpec and source of randomness This is a concrete method.
void
Initialize the KeyPairGeneratorSpi with the specified AlgorithmParameterSpec and source of randomness This is a concrete method.

Uses in package gnu.java.security.key.dss

Constructors with parameter type java.security.SecureRandom

Uses in package gnu.javax.crypto.key.dh

Constructors with parameter type java.security.SecureRandom

RFC2631.RFC2631(int m, int L, SecureRandom rnd)

Uses in package gnu.javax.net.ssl.provider

Methods with parameter type java.security.SecureRandom

void
@Override
SSLContextImpl.void engineInit(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom random)

Uses in package gnu.javax.crypto

Methods with parameter type java.security.SecureRandom

void
RSACipherImpl.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
void
RSACipherImpl.engineInit(int opmode, Key key, SecureRandom random)
void

Uses in package gnu.javax.crypto.jce.key

Fields of type java.security.SecureRandom

SecureRandom

Methods with parameter type java.security.SecureRandom

void
void
void

Uses in package gnu.javax.crypto.jce

Methods with parameter type java.security.SecureRandom

void
void

Uses in package gnu.javax.crypto.key

Fields of type java.security.SecureRandom

SecureRandom
The optional SecureRandom instance to use.

Uses in package gnu.javax.net.ssl

Fields of type java.security.SecureRandom

SecureRandom

Uses in package javax.crypto

Methods with parameter type java.security.SecureRandom

void
CipherSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
Initializes this cipher with an operation mode, key, parameters, and source of randomness.
void
CipherSpi.engineInit(int opmode, Key key, SecureRandom random)
Initializes this cipher with an operation mode, key, and source of randomness.
void
CipherSpi.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
Initializes this cipher with an operation mode, key, parameters, and source of randomness.
void
KeyGeneratorSpi.engineInit(int keySize, SecureRandom random)
Initialize this key generator with a key size (in bits) and a source of randomness.
void
Initialize this key agreement with a key and source of randomness.
void
Initialize this key agreement with a key, parameters, and source of randomness.
void
Initialize this key generator with a source of randomness; the implementation should use reasonable default parameters (such as generated key size).
void
Initialize this key generator with parameters and a source of randomness.
void
Cipher.init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
Initialize this cipher with the supplied key, parameters, and source of randomness.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.

void
Cipher.init(int opmode, Key key, SecureRandom random)
Initialize this cipher with the supplied key and source of randomness.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.

void
Cipher.init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
Initialize this cipher with the supplied key, parameters, and source of randomness.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.

void
KeyGenerator.init(int keySize, SecureRandom random)
Initialize this key generator with a key size (in bits) and a source of randomness.
void
Cipher.init(int opmode, Certificate certificate, SecureRandom random)
Initialize this cipher with the public key from the given certificate and the specified source of randomness.

The cipher will be initialized for encryption, decryption, key wrapping, or key unwrapping, depending upon whether the opmode argument is ENCRYPT_MODE, DECRYPT_MODE, WRAP_MODE, or UNWRAP_MODE, respectively.

As per the Java 1.4 specification, if cert is an instance of an X509Certificate and its key usage extension field is incompatible with opmode then an InvalidKeyException is thrown.

If this cipher requires any random bytes (for example for an initilization vector) than the SecureRandom with the highest priority is used as the source of these bytes.

A call to any of the init methods overrides the state of the instance, and is equivalent to creating a new instance and calling its init method.

void
Initialize this key agreement with a key and a source of randomness.
void
Initialize this key agreement with a key, parameters, and source of randomness.
void
Initialize this key generator with a source of randomness.
void
Initialize this key generator with a set of parameters and a source of randomness.

Uses in package gnu.javax.crypto.jce.cipher

Methods with parameter type java.security.SecureRandom

void
AESSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
void
Initializes this cipher with an operation mode, key, parameters, and source of randomness.
void
PBES2.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
void
ARCFourSpi.engineInit(int mode, Key key, SecureRandom r)
Initializes this cipher with an operation mode, key, and source of randomness.
void
PBES2.engineInit(int opmode, Key key, SecureRandom random)
void
AESSpi.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
void
Initializes this cipher with an operation mode, key, parameters, and source of randomness.
void
PBES2.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)

Uses in package java.security.interfaces

Methods with parameter type java.security.SecureRandom

void
DSAKeyPairGenerator.initialize(int modlen, boolean genParams, SecureRandom random)
Initializes the key generator to a give modulus.
void
Initializes the key generator with the specified DSA parameters and random bit source

Uses in package javax.net.ssl

Methods with parameter type java.security.SecureRandom

void
SSLContextSpi.engineInit(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom random)
Initialize this context with key and trust managers, and a source of randomness.
void
SSLContext.init(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom random)
Initializes this context and prepares it for producing socket factories.