public final class CryptoServicesRegistrar extends Object
Modifier and Type | Method and Description |
---|---|
static com.joshvm.java.security.SecureRandom |
getSecureRandom()
Return the default source of randomness.
|
static void |
setSecureRandom(com.joshvm.java.security.SecureRandom secureRandom)
Set a default secure random to be used where none is otherwise provided.
|
public static com.joshvm.java.security.SecureRandom getSecureRandom()
IllegalStateException
- if no source of randomness has been provided.public static void setSecureRandom(com.joshvm.java.security.SecureRandom secureRandom)
secureRandom
- the SecureRandom to use as the default.