RNGAlgorithm.java
package org.europa.together.domain;
/**
* Random Number Generator Algorithm.
*/
public enum RNGAlgorithm {
/**
* The name of the pseudo-random number generation (PRNG) algorithm supplied
* by the SUN provider. This algorithm uses SHA-1 as the foundation of the
* PRNG. It computes the SHA-1 hash over a true-random seed value
* concatenated with a 64-bit counter which is incremented by 1 for each
* operation. From the 160-bit SHA-1 output, only 64 bits are used.
*/
SHA1PRNG("SHA1PRNG"),
/**
* Obtains random numbers from the underlying native OS. No assertions are
* made as to the blocking nature of generating these numbers.
*/
NativePRNG("NativePRNG"),
/**
* Obtains random numbers from the underlying installed and configured PKCS
* #11 library.
*/
PKCS11("PKCS11"),
/**
* An algorithm using DRBG mechanisms as defined in NIST SP 800-90Ar1.
*/
DRBG("DRBG");
//CONSTRUCTOR
RNGAlgorithm(final String value) {
}
}