-
- All Superinterfaces:
CryptoAlgorithm
,RandomConstants
- All Known Implementing Classes:
RandomCreatorImpl
public interface RandomCreator extends CryptoAlgorithm, RandomConstants
The interface for a creator of securerandom data
. It is similar toSecureRandom
but gives additional abstraction.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface io.github.mmm.crypto.random.RandomConstants
RANDOM_ALGORITHM_SHA1_PRNG
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
nextRandom(int bytes)
-
Methods inherited from interface io.github.mmm.crypto.algorithm.CryptoAlgorithm
getAlgorithm
-
-
-
-
Method Detail
-
nextRandom
byte[] nextRandom(int bytes)
- Parameters:
bytes
- the requested number of random bytes.- Returns:
- the
byte
array with the given number of random bytes. - See Also:
SecureRandom.nextBytes(byte[])
-
-