com.mindbright.util
Class SecureRandomAndPad
java.lang.Object
java.util.Random
com.mindbright.jca.security.SecureRandom
com.mindbright.util.SecureRandomAndPad
- All Implemented Interfaces:
- java.io.Serializable
- public class SecureRandomAndPad
- extends SecureRandom
- See Also:
- Serialized Form
Methods inherited from class java.util.Random |
nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureRandomAndPad
public SecureRandomAndPad()
SecureRandomAndPad
public SecureRandomAndPad(SecureRandom random)
setPadSeed
public void setPadSeed(byte[] seed)
nextPadBytes
public void nextPadBytes(byte[] bytes,
int off,
int len)
generateSeed
public byte[] generateSeed(int numBytes)
- Overrides:
generateSeed
in class SecureRandom
nextBytes
public void nextBytes(byte[] bytes)
- Overrides:
nextBytes
in class SecureRandom
setSeed
public void setSeed(byte[] seed)
- Overrides:
setSeed
in class SecureRandom