SecureRandomAlgorithm
- Last Updated: May 30, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
Purpose
Specifies the SecureRandom number generation algorithm used for secure
seeding 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 when RandomGenerator is set to
secureRandom. IfRandomGenerator=secureRandomand 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 Methods
public String
getSecureRandomAlgorithm()
public void
setSecureRandomAlgorithm(String)
Default
No default value
Data Type
String