public class FixedSecureRandom
extends java.security.SecureRandom
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedSecureRandom.BigInteger
BigInteger Source - in this case we expect requests for data that will be used
for BigIntegers.
|
static class |
FixedSecureRandom.Data
Data Source - in this case we just expect requests for byte arrays.
|
static class |
FixedSecureRandom.Source
Base class for sources of fixed "Randomness"
|
| Constructor and Description |
|---|
FixedSecureRandom(byte[] value) |
FixedSecureRandom(byte[][] values) |
FixedSecureRandom(FixedSecureRandom.Source[] sources) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSeed(int numBytes) |
boolean |
isExhausted() |
void |
nextBytes(byte[] bytes) |
int |
nextInt() |
long |
nextLong() |
getAlgorithm, getInstance, getInstance, getInstance, getProvider, getSeed, next, setSeed, setSeedpublic FixedSecureRandom(byte[] value)
public FixedSecureRandom(byte[][] values)
public FixedSecureRandom(FixedSecureRandom.Source[] sources)
public void nextBytes(byte[] bytes)
nextBytes in class java.security.SecureRandompublic byte[] generateSeed(int numBytes)
generateSeed in class java.security.SecureRandompublic int nextInt()
nextInt in class java.util.Randompublic long nextLong()
nextLong in class java.util.Randompublic boolean isExhausted()