Package io.github.astrapi69.random
Class SecureRandomFactory
- java.lang.Object
-
- io.github.astrapi69.random.SecureRandomFactory
-
public final class SecureRandomFactory extends java.lang.Object
A factory for creatingSecureRandom
objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.SecureRandom
newSecureRandom()
Factory method for create a newSecureRandom
objectstatic java.security.SecureRandom
newSecureRandom(java.lang.String algorithm)
Factory method for create a newSecureRandom
objectstatic java.security.SecureRandom
newSecureRandom(java.lang.String algorithm, java.lang.String provider)
Factory method for create a newSecureRandom
objectstatic java.security.SecureRandom
newSecureRandom(java.lang.String algorithm, java.lang.String provider, long seed)
Factory method for create a newSecureRandom
object
-
-
-
Method Detail
-
newSecureRandom
public static java.security.SecureRandom newSecureRandom()
Factory method for create a newSecureRandom
object- Returns:
- the new
SecureRandom
object
-
newSecureRandom
public static java.security.SecureRandom newSecureRandom(java.lang.String algorithm)
Factory method for create a newSecureRandom
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 newSecureRandom
object- Parameters:
algorithm
- the algorithmprovider
- 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 newSecureRandom
object- Parameters:
algorithm
- the algorithmprovider
- the providerseed
- the seed- Returns:
- the new
SecureRandom
object
-
-