Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mindbright.jca.security
Class SecureRandomSpi

    java.lang.Object
      com.mindbright.jca.security.SecureRandomSpi

All Implemented Interfaces:
  java.io.Serializable

Direct Known Subclasses:
  BlumBlumShub

public abstract class SecureRandomSpi
extends java.lang.Object
implements java.io.Serializable

Interface for random number generators

See Also:
  Serialized Form

Constructor Summary
`SecureRandomSpi()`

Method Summary
`protected abstract byte[]` | `engineGenerateSeed(int numBytes)` Generate a number of random seed bytes.
`protected abstract void` | `engineNextBytes(byte[] bytes)` Generate random bytes
`protected abstract void` | `engineSetSeed(byte[] seed)` Set the seed used by the random number generator.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SecureRandomSpi

    public SecureRandomSpi()

Method Detail

### engineGenerateSeed

    protected abstract byte[] engineGenerateSeed(int numBytes)

  Generate a number of random seed bytes.

  Parameters:
    `numBytes` - how many bytes to generate
  Returns:
    an array filled with the requested number of random bytes

### engineNextBytes

    protected abstract void engineNextBytes(byte[] bytes)

  Generate random bytes

  Parameters:
    `bytes` - array which should be filled with random bytes

### engineSetSeed

    protected abstract void engineSetSeed(byte[] seed)

  Set the seed used by the random number generator.

  Parameters:
    `seed` - an array of random bytes

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD