public class DefaultSecureRandomProvider extends Object implements SecureRandomProvider
A default implementation of SecureRandomProvider
.
This class can be configured with both algorithm and key length. If the key length is <= 0, SecureRandom
instances
will be created without a previously generated random seed.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SALT_ALGORITHM |
Constructor and Description |
---|
DefaultSecureRandomProvider() |
DefaultSecureRandomProvider(String algorithm,
int keyLength) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
int |
getKeyLength() |
SecureRandom |
getSecureRandom() |
public static final String DEFAULT_SALT_ALGORITHM
public DefaultSecureRandomProvider()
public DefaultSecureRandomProvider(String algorithm, int keyLength)
public SecureRandom getSecureRandom()
getSecureRandom
in interface SecureRandomProvider
public String getAlgorithm()
public int getKeyLength()
Copyright © 2016 JBoss by Red Hat. All rights reserved.