public final class SecureRandomFactory extends Object
SecureRandom.
Clients should not access this class directly, but instead use SecureRandomService
or SecureTokenGenerator for their random data generation.
| Modifier and Type | Method and Description |
|---|---|
static SecureRandom |
newInstance()
Creates and fully initialises a new
SecureRandom instance. |
public static SecureRandom newInstance()
SecureRandom instance.
The instance is created via SecureRandom.SecureRandom(), which uses the default algorithm
provided by the JVM.
The initialisation involves forcing the self-seeding of the instance by calling
SecureRandom.nextBytes(byte[]).
SecureRandom instance.Copyright © 2017 Atlassian. All rights reserved.