|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<GeneratorMode>
org.random.rjgodoy.trng.GeneratorMode
public enum GeneratorMode
Values for the org.random.rjgodoy.trng.mode property.
Depending on the intended use of the generator, it may or may be not be acceptable using non-private random bits
(e.g., if the generator is used for private key generation). Therefore, two operation modes are provided:
The generator may return random bits as obtained from random.org (TRNG mode)
or it may xor them with random bits from a local PRNG (TRNG_XOR_PRNG mode).
| Enum Constant Summary | |
|---|---|
TRNG
The RNG will return true random numbers from the remote source |
|
TRNG_XOR_PRNG
The RNG will obtain true random numbers from the remote source, and will XOR them with pseudo-random numbers obtained from a local PRNG. |
|
| Method Summary | |
|---|---|
static GeneratorMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GeneratorMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final GeneratorMode TRNG
public static final GeneratorMode TRNG_XOR_PRNG
The PRNG must be seed by the application code, by calling SecureRandom.setSeed(byte[]) on the instantiated SecureRandom object.
| Method Detail |
|---|
public static GeneratorMode[] values()
for (GeneratorMode c : GeneratorMode.values()) System.out.println(c);
public static GeneratorMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
| Submit a bug or request a feature | Copyright © (2008-2011) Roberto Javier Godoy |
| Project Web Hosted by | SouceForge.net is registered trademark of SourceForge, Inc., in the United States and other countries. |