Top Description Constructors Methods
org.bouncycastle.util.test

public Class TestRandomData

extends FixedSecureRandom
Class Inheritance
Imports
org.bouncycastle.util.encoders.Hex

A fixed secure random designed to return data for someone needing random bytes.

Constructor Summary

AccessConstructor and Description
public
TestRandomData(String
a Hex encoding of the data to be returned.
encoding
)

Constructor from a Hex encoding of the data.

public
TestRandomData(byte[]
a byte array representing the data to be returned.
encoding
)

Constructor from an array of bytes.

Method Summary

Inherited from org.bouncycastle.util.test.FixedSecureRandom:
generateSeedisExhaustednextBytesnextIntnextLong

Constructor Detail

TestRandomDataback to summary
public TestRandomData(String encoding)

Constructor from a Hex encoding of the data.

Parameters
encoding:String

a Hex encoding of the data to be returned.

TestRandomDataback to summary
public TestRandomData(byte[] encoding)

Constructor from an array of bytes.

Parameters
encoding:byte[]

a byte array representing the data to be returned.