Dynamo includes a component you can use to generate secure random numbers. This component, with a Nucleus address of /atg/dynamo/service/random/SecureRandom
, can generate random numbers more efficiently than the Java class, java.security.SecureRandom
, as it provides the random number generator with a random seed, rather than using the slower process of Java’s SeedGenerator
.
You can configure the SecureRandom
service using another component, /atg/dynamo/service/random/SecureRandomConfiguration
. The SecureRandomConfiguration
component can configure the behavior of the SecureRandom
service with these properties:
Property | Description | Default Values |
---|---|---|
algorithm | The secure random algorithm to use. | SHA1PRNG |
provider | The security provider supplying | SUN |
seed | Dynamo generates a seed value for the random number generator when your application starts up. If the | null |
For more information, read the Java security architecture documentation, including the Javadoc for java.security.SecureRandom
.