public class CryptoAlgorithmImplWithRandom extends CryptoAlgorithmImpl
CryptoAlgorithmImpl with ability to create| Modifier and Type | Field and Description |
|---|---|
private RandomFactory |
randomFactory |
provider| Constructor and Description |
|---|
CryptoAlgorithmImplWithRandom(String algorithm,
SecurityProvider provider,
RandomFactory randomFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SecureRandom |
createSecureRandom() |
protected RandomFactory |
getRandomFactory() |
getAlgorithmgetProvidercreationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toStringprivate final RandomFactory randomFactory
public CryptoAlgorithmImplWithRandom(String algorithm, SecurityProvider provider, RandomFactory randomFactory)
algorithm - the algorithm.provider - the security Provider.randomFactory - the RandomFactory to use.protected RandomFactory getRandomFactory()
RandomFactory.protected SecureRandom createSecureRandom()
SecureRandom.RandomFactory.newSecureRandom()Copyright © 2001–2019 mmm-Team. All rights reserved.