Class NotSecurePseudoRandomSpi

  • All Implemented Interfaces:
    Serializable

    public class NotSecurePseudoRandomSpi
    extends SecureRandomSpi
    A mocked up instance of SecureRandom that just uses Random under the covers. This is to prevent blocking issues that arise in platform default SecureRandom instances due to too many instances / not enough random entropy. Tests do not need secure SSL.
    See Also:
    Serialized Form
    • Constructor Detail

      • NotSecurePseudoRandomSpi

        public NotSecurePseudoRandomSpi()
    • Method Detail

      • generateSeed

        public byte[] generateSeed​(int numBytes)
        returns a new byte[] filled with static data
      • nextBytes

        public void nextBytes​(byte[] bytes)
        fills the byte[] with static data
      • setSeed

        public void setSeed​(byte[] seed)
        NOOP
      • setSeed

        public void setSeed​(long seed)
        NOOP
      • reseed

        public void reseed()