java.lang.Object | |
↳ | org.springframework.security.core.token.SecureRandomFactoryBean |
Creates a SecureRandom instance.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Allows the Pseudo Random Number Generator (PRNG) algorithm to be nominated.
| |||||||||||
Allows the user to specify a resource which will act as a seed for the
SecureRandom
instance. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Allows the Pseudo Random Number Generator (PRNG) algorithm to be nominated. Defaults to "SHA1PRNG".
algorithm | to use (mandatory) |
---|
Allows the user to specify a resource which will act as a seed for the SecureRandom
instance. Specifically, the resource will be read into an InputStream and those
bytes presented to the setSeed(byte[])
method. Note that this will
simply supplement, rather than replace, the existing seed. As such, it is always safe to
set a seed using this method (it never reduces randomness).
seed | to use, or null if no additional seeding is needed
|
---|