java.security
Class SecureRandomSpi
java.lang.Object
|
+--java.security.SecureRandomSpi
All Implemented Interfaces:
Serializable
SecureRandomSpi is the Service Provider Interface for SecureRandom
providers. It provides an interface for providers to the
SecureRandom engine to write their own pseudo-random number
generator.
Since:Author:- Mark Benvenuto <ivymccough@worldnet.att.net>
SecureRandomSpi
public SecureRandomSpi()
Default Constructor for SecureRandomSpi
engineGenerateSeed
protected byte[] engineGenerateSeed(int numBytes)
Gets a user specified number of bytes specified by the
parameter.
Parameters:
Returns:
- an array full of random bytes
engineNextBytes
protected void engineNextBytes(byte[] bytes)
Gets a user specified number of bytes depending on the length
of the array?
Parameters:
engineSetSeed
protected void engineSetSeed(byte[] seed)
Updates the seed for SecureRandomSpi but does not reset seed.
It does to this so repeated called never decrease randomness.
Parameters: