Package jadex.commons.security.random
Class OpenSslAesCtrRandom
- java.lang.Object
 - 
- java.util.Random
 - 
- java.security.SecureRandom
 - 
- jadex.commons.security.random.OpenSslAesCtrRandom
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class OpenSslAesCtrRandom extends java.security.SecureRandomAccess to OpenSSL AES counter mode random.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description OpenSslAesCtrRandom() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]generateSeed(int numbytes)Generates a seed value from OS source.static booleanisEnabled()Checks if the library is in a usable state.voidnextBytes(byte[] bytes)voidreseedPrng(byte[] carryover)Reseeds the PRNG.- 
Methods inherited from class java.security.SecureRandom
getAlgorithm, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, setSeed, setSeed, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
nextBytes
public void nextBytes(byte[] bytes)
- Overrides:
 nextBytesin classjava.security.SecureRandom
 
- 
reseedPrng
public void reseedPrng(byte[] carryover)
Reseeds the PRNG. 
- 
generateSeed
public byte[] generateSeed(int numbytes)
Generates a seed value from OS source.- Overrides:
 generateSeedin classjava.security.SecureRandom
 
- 
isEnabled
public static final boolean isEnabled()
Checks if the library is in a usable state. 
 - 
 
 -