public class RandomFactoryImpl extends AbstractCryptoAlgorithmWithProvider implements RandomFactory
RandomFactory.| Modifier and Type | Field and Description |
|---|---|
private RandomConfig |
config |
private static RandomFactoryImpl |
STRONG_INSTANCE |
providerRANDOM_ALGORITHM_SHA1_PRNG| Constructor and Description |
|---|
RandomFactoryImpl(RandomConfig config)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
RandomCreator |
newRandomCreator() |
SecureRandom |
newSecureRandom() |
static RandomFactoryImpl |
ofStrong() |
getProvidercreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringprivate static RandomFactoryImpl STRONG_INSTANCE
private final RandomConfig config
public RandomFactoryImpl(RandomConfig config)
config - the RandomConfig.public String getAlgorithm()
getAlgorithm in interface CryptoAlgorithmKey.getAlgorithm(),
Signature.getAlgorithm(),
MessageDigest.getAlgorithm(),
SecureRandom.getAlgorithm(),
Cipher.getAlgorithm()public RandomCreator newRandomCreator()
newRandomCreator in interface RandomFactoryRandomCreator instance.public SecureRandom newSecureRandom()
newSecureRandom in interface RandomFactorySecureRandom.public static RandomFactoryImpl ofStrong()
RandomFactoryImpl for SecureRandom.getInstanceStrong().Copyright © 2001–2019 mmm-Team. All rights reserved.