Class SecureRandomFactory


  • public final class SecureRandomFactory
    extends java.lang.Object
    A factory for creating SecureRandom objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.SecureRandom newSecureRandom()
      Factory method for create a new SecureRandom object
      static java.security.SecureRandom newSecureRandom​(java.lang.String algorithm)
      Factory method for create a new SecureRandom object
      static java.security.SecureRandom newSecureRandom​(java.lang.String algorithm, java.lang.String provider)
      Factory method for create a new SecureRandom object
      static java.security.SecureRandom newSecureRandom​(java.lang.String algorithm, java.lang.String provider, long seed)
      Factory method for create a new SecureRandom object
      • Methods inherited from class java.lang.Object

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

      • newSecureRandom

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

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

        public static java.security.SecureRandom newSecureRandom​(java.lang.String algorithm,
                                                                 java.lang.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 java.security.SecureRandom newSecureRandom​(java.lang.String algorithm,
                                                                 java.lang.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