Class SecureRandomFactory

java.lang.Object
io.github.astrapi69.random.SecureRandomFactory

public final class SecureRandomFactory extends Object
A factory for creating SecureRandom objects
  • Method Details

    • newSecureRandom

      public static SecureRandom newSecureRandom()
      Factory method for create a new SecureRandom object
      Returns:
      the new SecureRandom object
    • newSecureRandom

      public static SecureRandom newSecureRandom(String algorithm)
      Factory method for create a new SecureRandom object
      Parameters:
      algorithm - the algorithm
      Returns:
      the new SecureRandom object
    • newSecureRandom

      public static SecureRandom newSecureRandom(String algorithm, String provider)
      Factory method for create a new SecureRandom object
      Parameters:
      algorithm - the algorithm
      provider - the provider
      Returns:
      the new SecureRandom object
    • newSecureRandom

      public static SecureRandom newSecureRandom(String algorithm, String provider, long seed)
      Factory method for create a new SecureRandom object
      Parameters:
      algorithm - the algorithm
      provider - the provider
      seed - the seed
      Returns:
      the new SecureRandom object