Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public abstract class

SecureRandomSpi

extends Object
implements Serializable
java.lang.Object
   ↳ java.security.SecureRandomSpi

Class Overview

SecureRandomSpi is the Service Provider Interface ( SPI ) definition for SecureRandom .

Summary

Public Constructors
SecureRandomSpi ()
Protected Methods
abstract byte[] engineGenerateSeed (int numBytes)
Generates and returns the specified number of seed bytes, computed using the seed generation algorithm used by this SecureRandomSpi .
abstract void engineNextBytes (byte[] bytes)
Generates and stores random bytes in the given byte[] for each array element.
abstract void engineSetSeed (byte[] seed)
Reseeds this SecureRandomSpi instance with the specified seed .
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SecureRandomSpi ()

Added in API level 1

Protected Methods

protected abstract byte[] engineGenerateSeed (int numBytes)

Added in API level 1

Generates and returns the specified number of seed bytes, computed using the seed generation algorithm used by this SecureRandomSpi .

Parameters
numBytes the number of seed bytes.
Returns
  • the seed bytes

protected abstract void engineNextBytes (byte[] bytes)

Added in API level 1

Generates and stores random bytes in the given byte[] for each array element.

Parameters
bytes the byte[] to be filled with random bytes.

protected abstract void engineSetSeed (byte[] seed)

Added in API level 1

Reseeds this SecureRandomSpi instance with the specified seed . The seed of this SecureRandomSpi instance is supplemented, not replaced.

Parameters
seed the new seed.