May 2001
Intermediate to advanced
618 pages
20h 50m
English
Class java.security.SecureRandom
This class generates random numbers. Unlike the standard random-number generator, numbers generated by this class are cryptographically secure -- that is, they are less subject to pattern guessing and other attacks that can be made upon a traditional random-number generator.
public class java.security.SecureRandom
extends java.util.Random {
// Constructors
public SecureRandom(byte[]);
protected SecureRandom(SecureRandomSpi, Provider);
public SecureRandom( );
// Class Methods
public static SecureRandom getInstance(String, String);
public static SecureRandom getInstance(String);
public static byte[] getSeed(int);
// Instance Methods
public byte[] generateSeed(int);
public final Provider getProvider( );
public synchronized void nextBytes(byte[]);
public synchronized void setSeed(byte[]);
public void setSeed(long);
// Protected Instance Methods
protected final int next(int);
}Read now
Unlock full access