skip to main content
Connection property descriptions : SecureRandomAlgorithm
  

Try DataDirect Drivers Now

SecureRandomAlgorithm

Purpose

Specifies the SecureRandom number generation algorithm used for secure seeding with implementations of JDK 8 or higher when the RandomGenerator connection property is set to secureRandom.

Valid values

algorithm_name
where:
algorithm_name
is the name of a SecureRandom number generation algorithm supported by the JDK packaged with your database management system.

Example

The connection property is a key-value pair with the name of the SecureRandom number generation algorithm written as a string, for example, SecureRandomAlgorithm=SHA1PRNG.

Notes

*SecureRandomAlgorithm can only be used with implementations of JDK 8 or higher when RandomGenerator is set to secureRandom. If RandomGenerator=secureRandom and no value is specified for SecureRandomAlgorithm, the SHA1PRNG algorithm is used for secure seeding.
*When establishing a connection with a connection string, RandomGenerator and SecureRandomAlgorithm should precede the User and Password connection properties in the connection URL. When using a data source connection, RandomGenerator and SecureRandomAlgorithm should be set before making calls to setUser(), setPassword(), or setNewPassword().
*Refer to your database management system documentation to see which SecureRandom number generation algorithms are included in the JDK packaged with your system. Additional information is also available on the Java Cryptography Architecture Standard Algorithm Name Documentation for JDK 8 Web page.

Data source method

setSecureRandomAlgorithm

Default

None

Data type

String

See also

*RandomGenerator
*Configuring SSL Encryption