Uses of Class
java.security.SecureRandom
-
Uses of SecureRandom in java.security
Fields in java.security declared as SecureRandom Modifier and Type Field Description protected SecureRandomSignatureSpi. appRandomImplementation specific source of randomness.Methods in java.security that return SecureRandom Modifier and Type Method Description static SecureRandomSecureRandom. getInstance(String algorithm)Returns a new instance ofSecureRandomthat utilizes the specified algorithm.static SecureRandomSecureRandom. getInstance(String algorithm, String provider)Returns a new instance ofSecureRandomthat utilizes the specified algorithm from the specified provider.static SecureRandomSecureRandom. getInstance(String algorithm, Provider provider)Returns a new instance ofSecureRandomthat utilizes the specified algorithm from the specified provider.Methods in java.security with parameters of type SecureRandom Modifier and Type Method Description protected abstract voidAlgorithmParameterGeneratorSpi. engineInit(int size, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the given size and the givenSecureRandom.protected abstract voidAlgorithmParameterGeneratorSpi. engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)Initializes thisAlgorithmParameterGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.protected voidSignatureSpi. engineInitSign(PrivateKey privateKey, SecureRandom random)Initializes thisSignatureSpiinstance for signing, using the private key of the identity whose signature is going to be generated and the specified source of randomness.voidAlgorithmParameterGenerator. init(int size, SecureRandom random)Initializes thisAlgorithmParameterGeneratorwith the given size and the givenSecureRandom.voidAlgorithmParameterGenerator. init(AlgorithmParameterSpec genParamSpec, SecureRandom random)Initializes thisAlgorithmParameterGeneratorwith the givenAlgorithmParameterSpecand the givenSecureRandom.voidKeyPairGenerator. initialize(int keysize, SecureRandom random)Initializes thisKeyPairGeneratorwith the given key size and the givenSecureRandom.voidKeyPairGenerator. initialize(AlgorithmParameterSpec param, SecureRandom random)Initializes thisKeyPairGeneratorwith the givenAlgorithmParameterSpecand the givenSecureRandom.abstract voidKeyPairGeneratorSpi. initialize(int keysize, SecureRandom random)Initializes thisKeyPairGeneratorSpiwith the given key size and the givenSecureRandom.voidKeyPairGeneratorSpi. initialize(AlgorithmParameterSpec params, SecureRandom random)Initializes thisKeyPairGeneratorSpiwith the givenAlgorithmParameterSpecand the givenSecureRandom.voidSignature. initSign(PrivateKey privateKey, SecureRandom random)Initializes thisSignatureinstance for signing, using the private key of the identity whose signature is going to be generated and the specified source of randomness. -
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 this generator for the specified modulus length.voidDSAKeyPairGenerator. initialize(DSAParams params, SecureRandom random)Initializes this generator with the prime (p), subprime (q), and base (g) values from the specified parameters. -
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 instance with the specified key, algorithm parameters and a source of randomness.protected abstract voidCipherSpi. engineInit(int opmode, Key key, SecureRandom random)Initializes this cipher instance with the specified key and a source of randomness.protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this cipher instance with the specified key, algorithm parameters and a source of randomness.protected abstract voidKeyAgreementSpi. engineInit(Key key, SecureRandom random)Initializes thisKeyAgreementSpiwith the specified key and the specified randomness source.protected abstract voidKeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes thisKeyAgreementSpiwith the specified key, algorithm parameters and randomness source.protected abstract voidKeyGeneratorSpi. engineInit(int keysize, SecureRandom random)Initializes thisKeyGeneratorinstance for the specified key size (in bits) using the specified randomness source.protected abstract voidKeyGeneratorSpi. engineInit(SecureRandom random)Initializes thisKeyGeneratorwith the specified randomness source.protected abstract voidKeyGeneratorSpi. engineInit(AlgorithmParameterSpec params, SecureRandom random)Initializes thisKeyGeneratorSpiinstance with the specified algorithm parameters and randomness source.voidCipher. init(int opmode, Certificate certificate, SecureRandom random)Initializes this cipher instance with the public key from the specified certificate and a source of randomness.voidCipher. init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)Initializes this cipher instance with the specified key, algorithm parameters and a source of randomness.voidCipher. init(int opmode, Key key, SecureRandom random)Initializes this cipher instance with the specified key and a source of randomness.voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes this cipher instance with the specified key, algorithm parameters and a source of randomness.voidKeyAgreement. init(Key key, SecureRandom random)Initializes thisKeyAgreementwith the specified key and the specified randomness source.voidKeyAgreement. init(Key key, AlgorithmParameterSpec params, SecureRandom random)Initializes thisKeyAgreementwith the specified key, algorithm parameters and randomness source.voidKeyGenerator. init(int keysize, SecureRandom random)Initializes thisKeyGeneratorinstance for the specified key size (in bits) using the specified randomness source.voidKeyGenerator. init(SecureRandom random)Initializes thisKeyGeneratorwith the specified randomness source.voidKeyGenerator. init(AlgorithmParameterSpec params, SecureRandom random)Initializes thisKeyGeneratorinstance with the specified algorithm parameters and randomness source. -
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 thisSSLContextinstance.voidSSLContext. init(KeyManager[] km, TrustManager[] tm, SecureRandom sr)Initializes thisSSLContextinstance. -
Uses of SecureRandom in org.apache.harmony.crypto.internal
Methods in org.apache.harmony.crypto.internal with parameters of type SecureRandom Modifier and Type Method Description voidNullCipherSpi. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)voidNullCipherSpi. engineInit(int opmode, Key key, SecureRandom random)voidNullCipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) -
Uses of SecureRandom in org.apache.http.conn.ssl
Constructors in org.apache.http.conn.ssl with parameters of type SecureRandom Constructor Description SSLSocketFactory(String algorithm, KeyStore keystore, String keystorePassword, KeyStore truststore, SecureRandom random, HostNameResolver nameResolver) -
Uses of SecureRandom in org.bouncycastle.cms
Fields in org.bouncycastle.cms declared as SecureRandom Modifier and Type Field Description protected SecureRandomCMSSignedGenerator. randConstructors in org.bouncycastle.cms with parameters of type SecureRandom Constructor Description CMSSignedDataGenerator(SecureRandom rand)Deprecated.rand ignored in new API, use base constructor.CMSSignedGenerator(SecureRandom rand)constructor allowing specific source of randomness -
Uses of SecureRandom in org.bouncycastle.crypto
Fields in org.bouncycastle.crypto declared as SecureRandom Modifier and Type Field Description protected SecureRandomCipherKeyGenerator. randomMethods in org.bouncycastle.crypto that return SecureRandom Modifier and Type Method Description SecureRandomKeyGenerationParameters. getRandom()return the random source associated with this generator.Constructors in org.bouncycastle.crypto with parameters of type SecureRandom Constructor Description KeyGenerationParameters(SecureRandom random, int strength)initialise the generator with a source of randomness and a strength (in bits). -
Uses of SecureRandom in org.bouncycastle.crypto.generators
Methods in org.bouncycastle.crypto.generators with parameters of type SecureRandom Modifier and Type Method Description voidDHParametersGenerator. init(int size, int certainty, SecureRandom random)Initialise the parameters generator.voidDSAParametersGenerator. init(int size, int certainty, SecureRandom random)initialise the key generator. -
Uses of SecureRandom in org.bouncycastle.crypto.paddings
Methods in org.bouncycastle.crypto.paddings with parameters of type SecureRandom Modifier and Type Method Description voidBlockCipherPadding. init(SecureRandom random)Initialise the padder.voidISO10126d2Padding. init(SecureRandom random)Initialise the padder.voidISO7816d4Padding. init(SecureRandom random)Initialise the padder.voidPKCS7Padding. init(SecureRandom random)Initialise the padder.voidTBCPadding. init(SecureRandom random)Initialise the padder.voidX923Padding. init(SecureRandom random)Initialise the padder.voidZeroBytePadding. init(SecureRandom random)Initialise the padder. -
Uses of SecureRandom in org.bouncycastle.crypto.params
Methods in org.bouncycastle.crypto.params that return SecureRandom Modifier and Type Method Description SecureRandomDSAParameterGenerationParameters. getRandom()SecureRandomParametersWithRandom. getRandom()Constructors in org.bouncycastle.crypto.params with parameters of type SecureRandom Constructor Description DHKeyGenerationParameters(SecureRandom random, DHParameters params)DSAKeyGenerationParameters(SecureRandom random, DSAParameters params)DSAParameterGenerationParameters(int L, int N, int certainty, SecureRandom random)Construct without a usage index, this will do a random construction of G.DSAParameterGenerationParameters(int L, int N, int certainty, SecureRandom random, int usageIndex)Construct for a specific usage index - this has the effect of using verifiable canonical generation of G.ECKeyGenerationParameters(ECDomainParameters domainParams, SecureRandom random)ParametersWithRandom(CipherParameters parameters, SecureRandom random)RSAKeyGenerationParameters(BigInteger publicExponent, SecureRandom random, int strength, int certainty) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.asymmetric.dh
Fields in org.bouncycastle.jcajce.provider.asymmetric.dh declared as SecureRandom Modifier and Type Field Description protected SecureRandomAlgorithmParameterGeneratorSpi. randomMethods in org.bouncycastle.jcajce.provider.asymmetric.dh with parameters of type SecureRandom Modifier and Type Method Description protected voidAlgorithmParameterGeneratorSpi. engineInit(int strength, SecureRandom random)protected voidAlgorithmParameterGeneratorSpi. engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)protected voidKeyAgreementSpi. engineInit(Key key, SecureRandom random)protected voidKeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)voidKeyPairGeneratorSpi. initialize(int strength, SecureRandom random)voidKeyPairGeneratorSpi. initialize(AlgorithmParameterSpec params, SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.asymmetric.dsa
Fields in org.bouncycastle.jcajce.provider.asymmetric.dsa declared as SecureRandom Modifier and Type Field Description protected SecureRandomAlgorithmParameterGeneratorSpi. randomMethods in org.bouncycastle.jcajce.provider.asymmetric.dsa with parameters of type SecureRandom Modifier and Type Method Description protected voidAlgorithmParameterGeneratorSpi. engineInit(int strength, SecureRandom random)protected voidAlgorithmParameterGeneratorSpi. engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)protected voidDSASigner. engineInitSign(PrivateKey privateKey, SecureRandom random)voidKeyPairGeneratorSpi. initialize(int strength, SecureRandom random)voidKeyPairGeneratorSpi. initialize(AlgorithmParameterSpec params, SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.asymmetric.ec
Methods in org.bouncycastle.jcajce.provider.asymmetric.ec with parameters of type SecureRandom Modifier and Type Method Description protected voidKeyAgreementSpi. engineInit(Key key, SecureRandom random)protected voidKeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)voidKeyPairGeneratorSpi.EC. initialize(int strength, SecureRandom random)voidKeyPairGeneratorSpi.EC. initialize(AlgorithmParameterSpec params, SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.asymmetric.rsa
Methods in org.bouncycastle.jcajce.provider.asymmetric.rsa with parameters of type SecureRandom Modifier and Type Method Description protected voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidCipherSpi. engineInit(int opmode, Key key, SecureRandom random)protected voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)voidKeyPairGeneratorSpi. initialize(int strength, SecureRandom random)voidKeyPairGeneratorSpi. initialize(AlgorithmParameterSpec params, SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.keystore.bc
Fields in org.bouncycastle.jcajce.provider.keystore.bc declared as SecureRandom Modifier and Type Field Description protected SecureRandomBcKeyStoreSpi. randomMethods in org.bouncycastle.jcajce.provider.keystore.bc with parameters of type SecureRandom Modifier and Type Method Description voidBcKeyStoreSpi. setRandom(SecureRandom rand) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.keystore.pkcs12
Fields in org.bouncycastle.jcajce.provider.keystore.pkcs12 declared as SecureRandom Modifier and Type Field Description protected SecureRandomPKCS12KeyStoreSpi. randomMethods in org.bouncycastle.jcajce.provider.keystore.pkcs12 with parameters of type SecureRandom Modifier and Type Method Description voidPKCS12KeyStoreSpi. setRandom(SecureRandom rand) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.symmetric
Methods in org.bouncycastle.jcajce.provider.symmetric with parameters of type SecureRandom Modifier and Type Method Description protected voidDES.AlgParamGen. engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)protected voidDES.KeyGenerator. engineInit(int keySize, SecureRandom random)protected voidDESede.KeyGenerator. engineInit(int keySize, SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.jcajce.provider.symmetric.util
Fields in org.bouncycastle.jcajce.provider.symmetric.util declared as SecureRandom Modifier and Type Field Description protected SecureRandomBaseAlgorithmParameterGenerator. randomMethods in org.bouncycastle.jcajce.provider.symmetric.util with parameters of type SecureRandom Modifier and Type Method Description protected voidBaseAlgorithmParameterGenerator. engineInit(int strength, SecureRandom random)protected voidBaseBlockCipher. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidBaseBlockCipher. engineInit(int opmode, Key key, SecureRandom random)protected voidBaseBlockCipher. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)protected voidBaseKeyGenerator. engineInit(int keySize, SecureRandom random)protected voidBaseKeyGenerator. engineInit(SecureRandom random)protected voidBaseKeyGenerator. engineInit(AlgorithmParameterSpec params, SecureRandom random)protected voidBaseStreamCipher. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidBaseStreamCipher. engineInit(int opmode, Key key, SecureRandom random)protected voidBaseStreamCipher. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)protected voidBaseWrapCipher. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidBaseWrapCipher. engineInit(int opmode, Key key, SecureRandom random)protected voidBaseWrapCipher. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.jce.interfaces
Methods in org.bouncycastle.jce.interfaces with parameters of type SecureRandom Modifier and Type Method Description voidBCKeyStore. setRandom(SecureRandom random)set the random source for the key store -
Uses of SecureRandom in org.bouncycastle.jce.netscape
Methods in org.bouncycastle.jce.netscape with parameters of type SecureRandom Modifier and Type Method Description voidNetscapeCertRequest. sign(PrivateKey priv_key, SecureRandom rand) -
Uses of SecureRandom in org.bouncycastle.jce.provider
Methods in org.bouncycastle.jce.provider with parameters of type SecureRandom Modifier and Type Method Description protected voidJCEStreamCipher. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidJCEStreamCipher. engineInit(int opmode, Key key, SecureRandom random)protected voidJCEStreamCipher. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.operator.jcajce
Methods in org.bouncycastle.operator.jcajce with parameters of type SecureRandom Modifier and Type Method Description JcaContentSignerBuilderJcaContentSignerBuilder. setSecureRandom(SecureRandom random) -
Uses of SecureRandom in org.bouncycastle.util
Methods in org.bouncycastle.util with parameters of type SecureRandom Modifier and Type Method Description static BigIntegerBigIntegers. createRandomInRange(BigInteger min, BigInteger max, SecureRandom random)Return a random BigInteger not less than 'min' and not greater than 'max' -
Uses of SecureRandom in org.bouncycastle.x509
Methods in org.bouncycastle.x509 with parameters of type SecureRandom Modifier and Type Method Description X509CertificateX509V1CertificateGenerator. generate(PrivateKey key, String provider, SecureRandom random)Deprecated.generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing, and the passed in source of randomness (if required).X509CertificateX509V1CertificateGenerator. generate(PrivateKey key, SecureRandom random)Deprecated.generate an X509 certificate, based on the current issuer and subject using the default provider and the passed in source of randomnessX509CertificateX509V3CertificateGenerator. generate(PrivateKey key, String provider, SecureRandom random)Deprecated.generate an X509 certificate, based on the current issuer and subject, using the passed in provider for the signing and the supplied source of randomness, if required.X509CertificateX509V3CertificateGenerator. generate(PrivateKey key, SecureRandom random)Deprecated.generate an X509 certificate, based on the current issuer and subject using the default provider, and the passed in source of randomness (if required).X509CertificateX509V1CertificateGenerator. generateX509Certificate(PrivateKey key, String provider, SecureRandom random)Deprecated.use generate()X509CertificateX509V1CertificateGenerator. generateX509Certificate(PrivateKey key, SecureRandom random)Deprecated.use generate(key, random, "BC")X509CertificateX509V3CertificateGenerator. generateX509Certificate(PrivateKey key, String provider, SecureRandom random)Deprecated.use generate()X509CertificateX509V3CertificateGenerator. generateX509Certificate(PrivateKey key, SecureRandom random)Deprecated.use generate(key, random, "BC") -
Uses of SecureRandom in org.conscrypt
Methods in org.conscrypt that return SecureRandom Modifier and Type Method Description protected SecureRandomSSLParametersImpl. getSecureRandom()protected SecureRandomSSLParametersImpl. getSecureRandomMember()Methods in org.conscrypt with parameters of type SecureRandom Modifier and Type Method Description voidDefaultSSLContextImpl. engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)protected voidOpenSSLCipher. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidOpenSSLCipher. engineInit(int opmode, Key key, SecureRandom random)protected voidOpenSSLCipher. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)protected voidOpenSSLCipherRSA. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)protected voidOpenSSLCipherRSA. engineInit(int opmode, Key key, SecureRandom random)protected voidOpenSSLCipherRSA. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)protected voidOpenSSLECDHKeyAgreement. engineInit(Key key, SecureRandom random)protected voidOpenSSLECDHKeyAgreement. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)voidSSLContextImpl. engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)Initializes thisSSLContextinstance.voidOpenSSLDSAKeyPairGenerator. initialize(int keysize, SecureRandom random)voidOpenSSLDSAKeyPairGenerator. initialize(AlgorithmParameterSpec params, SecureRandom random)voidOpenSSLECKeyPairGenerator. initialize(int keysize, SecureRandom random)voidOpenSSLECKeyPairGenerator. initialize(AlgorithmParameterSpec param, SecureRandom random)voidOpenSSLRSAKeyPairGenerator. initialize(int keysize, SecureRandom random)voidOpenSSLRSAKeyPairGenerator. initialize(AlgorithmParameterSpec params, SecureRandom random)Constructors in org.conscrypt with parameters of type SecureRandom Constructor Description ClientHello(SecureRandom sr, byte[] version, byte[] ses_id, CipherSuite[] cipher_suite)Creates outbound messageServerHello(SecureRandom sr, byte[] server_version, byte[] session_id, CipherSuite cipher_suite, byte compression_method)Creates outbound messageSSLParametersImpl(KeyManager[] kms, TrustManager[] tms, SecureRandom sr, ClientSessionContext clientSessionContext, ServerSessionContext serverSessionContext)Initializes the parameters.SSLSessionImpl(SecureRandom secureRandom)SSLSessionImpl(CipherSuite cipher_suite, SecureRandom secureRandom)