SecureRandom generator.
This object holds the configurable properties of a secure random generator
and uses them to create and load a SecureRandom instance.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SecureRandom | Returns: secure random generator instanceCreates a new |
| public String | Returns: an algorithm name (e.g.SHA1PRNG); the
SSL#DEFAULT_SECURE_RANDOM_ALGORITHM is returned if no
algorithm has been specifiedGets the secure random generator algorithm name. |
| public String | |
| public void | setAlgorithm(String
an algorithm name, which must be recognized by the provider
specified via algorithm)setProvider(String) or by the
platform's default provider if no provider is specified.Sets the secure random generator algorithm name. |
| public void | setProvider(String
name of the JCA provider to utilize in creating the secure
random generator provider)Sets the JCA provider name for the secure random generator. |
| algorithm | back to summary |
|---|---|
| private String algorithm | |
| provider | back to summary |
|---|---|
| private String provider | |
| SecureRandomFactoryBean | back to summary |
|---|---|
| public SecureRandomFactoryBean() | |
| createSecureRandom | back to summary |
|---|---|
| public SecureRandom createSecureRandom() throws NoSuchProviderException, NoSuchAlgorithmException Creates a new
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Gets the secure random generator algorithm name.
| |
| getProvider | back to summary |
|---|---|
| public String getProvider() Gets the JCA provider name for the secure random generator.
| |
| setAlgorithm | back to summary |
|---|---|
| public void setAlgorithm(String algorithm) Sets the secure random generator algorithm name.
| |
| setProvider | back to summary |
|---|---|
| public void setProvider(String provider) Sets the JCA provider name for the secure random generator.
| |