public abstract class SecureRandomSpi extends Object implements Serializable
SecureRandomSpi is the Service Provider Interface (SPI) definition
for SecureRandom.SecureRandom,
Serialized Form| Constructor and Description |
|---|
SecureRandomSpi() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
engineGenerateSeed(int numBytes)
Generates and returns the specified number of seed bytes, computed using
the seed generation algorithm used by this
SecureRandomSpi. |
protected abstract void |
engineNextBytes(byte[] bytes)
Generates and stores random bytes in the given
byte[] for each
array element. |
protected abstract void |
engineSetSeed(byte[] seed)
Reseeds this
SecureRandomSpi instance with the specified seed. |
protected abstract void engineSetSeed(byte[] seed)
SecureRandomSpi instance with the specified seed. The seed of this SecureRandomSpi instance is supplemented,
not replaced.seed - the new seed.protected abstract void engineNextBytes(byte[] bytes)
byte[] for each
array element.bytes - the byte[] to be filled with random bytes.protected abstract byte[] engineGenerateSeed(int numBytes)
SecureRandomSpi.numBytes - the number of seed bytes.