Class PK11SecureRandom

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void nextBytes​(byte[] bytes)
      Retrieves random bytes and stores them in the given array.
      void setSeed​(byte[] seed)
      Seed the RNG with the given seed bytes.
      void setSeed​(long seed)
      Seed the RNG with the eight bytes contained in seed.
      • Methods inherited from class java.lang.Object

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

      • PK11SecureRandom

        public PK11SecureRandom()
    • Method Detail

      • setSeed

        public void setSeed​(byte[] seed)
        Description copied from interface: JSSSecureRandom
        Seed the RNG with the given seed bytes.
        Specified by:
        setSeed in interface JSSSecureRandom
        Parameters:
        seed - Seed.
      • setSeed

        public void setSeed​(long seed)
        Description copied from interface: JSSSecureRandom
        Seed the RNG with the eight bytes contained in seed.
        Specified by:
        setSeed in interface JSSSecureRandom
        Parameters:
        seed - Seed.
      • nextBytes

        public void nextBytes​(byte[] bytes)
        Description copied from interface: JSSSecureRandom
        Retrieves random bytes and stores them in the given array.
        Specified by:
        nextBytes in interface JSSSecureRandom
        Parameters:
        bytes - Array to store random bytes.