Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Class SecureRandomSpi

java.lang.Object
|
+--java.security.SecureRandomSpi

All Implemented Interfaces:

Serializable


public abstract class SecureRandomSpi

extends Object

implements 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:

Constructor Summary

SecureRandomSpi()

Default Constructor for SecureRandomSpi

Method Summary

byte[]engineGenerateSeed(int numBytes)

Gets a user specified number of bytes specified by the parameter.
voidengineNextBytes(byte[] bytes)

Gets a user specified number of bytes depending on the length of the array?
voidengineSetSeed(byte[] seed)

Updates the seed for SecureRandomSpi but does not reset seed.

Constructor Details

SecureRandomSpi

public SecureRandomSpi()

Default Constructor for SecureRandomSpi


Method Details

engineGenerateSeed

protected byte[] engineGenerateSeed(int numBytes)

Gets a user specified number of bytes specified by the parameter.

Parameters:

Returns:


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: