public enum RngAlgorithm extends java.lang.Enum<RngAlgorithm> implements Algorithm
RngAlgorithm provides algorithms for generation of random number generator (RNG)
that are used with the SecureRandom object. | Enum Constant and Description |
|---|
NativePRNG
The Native PRNG.
|
NativePRNGBlocking
The Native PRNG blocking.
|
NativePRNGNonBlocking
The Native PRNG non blocking.
|
PKCS11
The pkcs11.
|
SHA1PRNG
The sha1prng.
|
Windows_PRNG
The Windows PRNG.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Gets the algorithm for encryption or decryption.
|
static RngAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RngAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RngAlgorithm NativePRNG
public static final RngAlgorithm NativePRNGBlocking
public static final RngAlgorithm NativePRNGNonBlocking
public static final RngAlgorithm PKCS11
public static final RngAlgorithm SHA1PRNG
public static final RngAlgorithm Windows_PRNG
public static RngAlgorithm[] values()
for (RngAlgorithm c : RngAlgorithm.values()) System.out.println(c);
public static RngAlgorithm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getAlgorithm()
AlgorithmgetAlgorithm in interface Algorithm