FileDocCategorySizeDatePackage
SecureRandomSpi.javaAPI DocAndroid 1.5 API2276Wed May 06 22:41:06 BST 2009java.security

SecureRandomSpi

public abstract class SecureRandomSpi extends Object implements Serializable
{@code SecureRandomSpi} is the Service Provider Interface (SPI) definition for {@link SecureRandom}.
see
SecureRandom
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
Methods Summary
protected abstract byte[]engineGenerateSeed(int numBytes)
Generates and returns the specified number of seed bytes, computed using the seed generation algorithm used by this {@code SecureRandomSpi}.

param
numBytes the number of seed bytes.
return
the seed bytes
since
Android 1.0

protected abstract voidengineNextBytes(byte[] bytes)
Generates and stores random bytes in the given {@code byte[]} for each array element.

param
bytes the {@code byte[]} to be filled with random bytes.
since
Android 1.0

protected abstract voidengineSetSeed(byte[] seed)
Reseeds this {@code SecureRandomSpi} instance with the specified {@code seed}. The seed of this {@code SecureRandomSpi} instance is supplemented, not replaced.

param
seed the new seed.
since
Android 1.0