Package jadex.commons.security.random
Class SynchronizedSecureRandomWrapper
- java.lang.Object
-
- java.util.Random
-
- java.security.SecureRandom
-
- jadex.commons.security.random.SynchronizedSecureRandomWrapper
-
- All Implemented Interfaces:
java.io.Serializable
public class SynchronizedSecureRandomWrapper extends java.security.SecureRandom
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.security.SecureRandom
delegate
-
Constructor Summary
Constructors Constructor Description SynchronizedSecureRandomWrapper(java.security.SecureRandom delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generateSeed(int numBytes)
Delegationjava.lang.String
getAlgorithm()
Delegationboolean
nextBoolean()
Delegationvoid
nextBytes(byte[] bytes)
Delegationdouble
nextDouble()
Delegationfloat
nextFloat()
Delegationdouble
nextGaussian()
Delegationint
nextInt()
Delegationint
nextInt(int bound)
Delegationlong
nextLong()
Delegationvoid
setSeed(byte[] seed)
Delegationvoid
setSeed(long seed)
Delegation-
Methods inherited from class java.security.SecureRandom
getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, toString
-
-
-
-
Method Detail
-
generateSeed
public byte[] generateSeed(int numBytes)
Delegation- Overrides:
generateSeed
in classjava.security.SecureRandom
-
getAlgorithm
public java.lang.String getAlgorithm()
Delegation- Overrides:
getAlgorithm
in classjava.security.SecureRandom
-
nextBytes
public void nextBytes(byte[] bytes)
Delegation- Overrides:
nextBytes
in classjava.security.SecureRandom
-
setSeed
public void setSeed(byte[] seed)
Delegation- Overrides:
setSeed
in classjava.security.SecureRandom
-
setSeed
public void setSeed(long seed)
Delegation- Overrides:
setSeed
in classjava.security.SecureRandom
-
nextBoolean
public boolean nextBoolean()
Delegation- Overrides:
nextBoolean
in classjava.util.Random
-
nextDouble
public double nextDouble()
Delegation- Overrides:
nextDouble
in classjava.util.Random
-
nextFloat
public float nextFloat()
Delegation- Overrides:
nextFloat
in classjava.util.Random
-
nextGaussian
public double nextGaussian()
Delegation- Overrides:
nextGaussian
in classjava.util.Random
-
nextInt
public int nextInt()
Delegation- Overrides:
nextInt
in classjava.util.Random
-
nextInt
public int nextInt(int bound)
Delegation- Overrides:
nextInt
in classjava.util.Random
-
nextLong
public long nextLong()
Delegation- Overrides:
nextLong
in classjava.util.Random
-
-