public FixedSecureRandom(byte[] value) { this(new Source[] { new Data(value) }); }
/** * Constructor from a Hex encoding of the data. * * @param encoding a Hex encoding of the data to be returned. */ public TestRandomData(String encoding) { super(new Source[] { new FixedSecureRandom.Data(Hex.decode(encoding)) }); }
/** * Constructor from an array of bytes. * * @param encoding a byte array representing the data to be returned. */ public TestRandomData(byte[] encoding) { super(new Source[] { new FixedSecureRandom.Data(encoding) }); } }
private static Data[] buildDataArray(byte[][] values) { Data[] res = new Data[values.length]; for (int i = 0; i != values.length; i++) { res[i] = new Data(values[i]); } return res; }