Uses of Class
java.security.SecureRandom
| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.security.interfaces |
Provides interfaces for generating RSA (Rivest, Shamir and
Adleman AsymmetricCipher algorithm)
keys as defined in the RSA Laboratory Technical Note
PKCS#1, and DSA (Digital Signature
Algorithm) keys as defined in NIST's FIPS-186.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic
operations.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
-
Uses of SecureRandom in java.security
Fields in java.security declared as SecureRandom Modifier and Type Field Description protected SecureRandomSignatureSpi. appRandomApplication-specified source of randomness.Methods in java.security that return SecureRandom Modifier and Type Method Description static SecureRandomSecureRandom. getInstance(String algorithm)Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm.static SecureRandomSecureRandom. getInstance(String algorithm, String provider)Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm.static SecureRandomSecureRandom. getInstance(String algorithm, Provider provider)Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm.static SecureRandomSecureRandom. getInstance(String algorithm, SecureRandomParameters params)Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParametersrequest.static SecureRandomSecureRandom. getInstance(String algorithm, SecureRandomParameters params, String provider)Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParametersrequest.static SecureRandomSecureRandom. getInstance(String algorithm, SecureRandomParameters params, Provider provider)Returns aSecureRandomobject that implements the specified Random Number Generator (RNG) algorithm and supports the specifiedSecureRandomParametersrequest.static SecureRandomSecureRandom. getInstanceStrong()Returns aSecureRandomobject that was selected by using the algorithms/providers specified in thesecurerandom.strongAlgorithmsSecurityproperty.Methods in java.security with parameters of type SecureRandom Modifier and Type Method Description protected abstract voidAlgorithmParameterGeneratorSpi. engineInit(int size, SecureRandom random)Initializes this parameter generator for a certain size and source of randomness.protected abstract voidAlgorithmParameterGeneratorSpi. engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)Initializes this parameter generator with a set of algorithm-specific parameter generation values.protected voidSignatureSpi. engineInitSign(PrivateKey privateKey, SecureRandom random)Initializes this signature object with the specified private key and source of randomness for signing operations.voidAlgorithmParameterGenerator. init(int size, SecureRandom random)Initializes this parameter generator for a certain size and source of randomness.voidAlgorithmParameterGenerator. init(AlgorithmParameterSpec genParamSpec, SecureRandom random)Initializes this parameter generator with a set of algorithm-specific parameter generation values.voidKeyPairGenerator. initialize(int keysize, SecureRandom random)Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set).voidKeyPairGenerator. initialize(AlgorithmParameterSpec params, SecureRandom random)Initializes the key pair generator with the given parameter set and source of randomness.abstract voidKeyPairGeneratorSpi. initialize(int keysize, SecureRandom random)Initializes the key pair generator for a certain keysize, using the default parameter set.voidKeyPairGeneratorSpi. initialize(AlgorithmParameterSpec params, SecureRandom random)Initializes the key pair generator using the specified parameter set and user-provided source of randomness.voidSignature. initSign(PrivateKey privateKey, SecureRandom random)Initialize this object for signing. -
Uses of SecureRandom in java.security.interfaces
Methods in java.security.interfaces with parameters of type SecureRandom Modifier and Type Method Description voidDSAKeyPairGenerator. initialize(int modlen, boolean genParams, SecureRandom random)Initializes the key pair generator for a given modulus length (instead of parameters), and an optional SecureRandom bit source.voidDSAKeyPairGenerator. initialize(DSAParams params, SecureRandom random)Initializes the key pair generator using the DSA family parameters (p,q and g) and an optional SecureRandom bit source. -
Uses of SecureRandom in javax.crypto
Methods in javax.crypto with parameters of type SecureRandom Modifier and Type Method Description protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.protected abstract voidCipherSpi. engineInit(int opmode, Key key, SecureRandom random)Initializes this cipher with a key and a source of randomness.protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.protected abstract voidKeyAgreementSpi. engineInit(Key key, SecureRandom random)Initializes this key agreement with the given key and source of randomness.protected abstract voidKeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.protected abstract voidKeyGeneratorSpi. engineInit(int keysize, SecureRandom random)Initializes this key generator for a certain keysize, using the given source of randomness.protected abstract voidKeyGeneratorSpi. engineInit(SecureRandom random)Initializes the key generator.protected abstract voidKeyGeneratorSpi. engineInit(AlgorithmParameterSpec params, SecureRandom random)Initializes the key generator with the specified parameter set and a user-provided source of randomness.voidCipher. init(int opmode, Certificate certificate, SecureRandom random)Initializes this cipher with the public key from the given certificate and a source of randomness.voidCipher. init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.voidCipher. init(int opmode, Key key, SecureRandom random)Initializes this cipher with a key and a source of randomness.voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this cipher with a key, a set of algorithm parameters, and a source of randomness.voidKeyAgreement. init(Key key, SecureRandom random)Initializes this key agreement with the given key and source of randomness.voidKeyAgreement. init(Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this key agreement with the given key, set of algorithm parameters, and source of randomness.voidKeyGenerator. init(int keysize, SecureRandom random)Initializes this key generator for a certain keysize, using a user-provided source of randomness.voidKeyGenerator. init(SecureRandom random)Initializes this key generator.voidKeyGenerator. init(AlgorithmParameterSpec params, SecureRandom random)Initializes this key generator with the specified parameter set and a user-provided source of randomness. -
Uses of SecureRandom in javax.net.ssl
Methods in javax.net.ssl with parameters of type SecureRandom Modifier and Type Method Description protected abstract voidSSLContextSpi. engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)Initializes this context.voidSSLContext. init(KeyManager[] km, TrustManager[] tm, SecureRandom random)Initializes this context.