|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
package java.security; |
|
|
|
/** |
|
* This class defines the <i>Service Provider Interface</i> (<b>SPI</b>) |
|
* for the {@code SecureRandom} class. |
|
* All the abstract methods in this class must be implemented by each |
|
* service provider who wishes to supply the implementation |
|
* of a cryptographically strong pseudo-random number generator. |
|
* |
|
* |
|
* @see SecureRandom |
|
* @since 1.2 |
|
*/ |
|
|
|
public abstract class SecureRandomSpi implements java.io.Serializable { |
|
|
|
private static final long serialVersionUID = -2991854161009191830L; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
protected abstract void engineSetSeed(byte[] seed); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
protected abstract void engineNextBytes(byte[] bytes); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
protected abstract byte[] engineGenerateSeed(int numBytes); |
|
} |