Class TestRandomData

  • All Implemented Interfaces:
    java.io.Serializable

    public class TestRandomData
    extends FixedSecureRandom
    A fixed secure random designed to return data for someone needing random bytes.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TestRandomData​(byte[] encoding)
      Constructor from an array of bytes.
      TestRandomData​(java.lang.String encoding)
      Constructor from a Hex encoding of the data.
    • Method Summary

      • Methods inherited from class java.security.SecureRandom

        getAlgorithm, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, setSeed, setSeed, toString
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TestRandomData

        public TestRandomData​(java.lang.String encoding)
        Constructor from a Hex encoding of the data.
        Parameters:
        encoding - a Hex encoding of the data to be returned.
      • TestRandomData

        public TestRandomData​(byte[] encoding)
        Constructor from an array of bytes.
        Parameters:
        encoding - a byte array representing the data to be returned.