Module io.github.mmm.crypto
Package io.github.mmm.crypto.algorithm
Class CryptoAlgorithmImplWithRandom
- java.lang.Object
-
- io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
-
- io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithProvider
-
- io.github.mmm.crypto.algorithm.CryptoAlgorithmImpl
-
- io.github.mmm.crypto.algorithm.CryptoAlgorithmImplWithRandom
-
- All Implemented Interfaces:
CryptoAlgorithm
- Direct Known Subclasses:
AbstractAsymmetricKeyCreator
public class CryptoAlgorithmImplWithRandom extends CryptoAlgorithmImpl
ExtendsCryptoAlgorithmImpl
with ability to create- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithProvider
provider
-
-
Constructor Summary
Constructors Constructor Description CryptoAlgorithmImplWithRandom(String algorithm, SecurityProvider provider, RandomFactory randomFactory)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecureRandom
createSecureRandom()
protected RandomFactory
getRandomFactory()
-
Methods inherited from class io.github.mmm.crypto.algorithm.CryptoAlgorithmImpl
getAlgorithm
-
Methods inherited from class io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithProvider
getProvider
-
Methods inherited from class io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
creationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toString
-
-
-
-
Constructor Detail
-
CryptoAlgorithmImplWithRandom
public CryptoAlgorithmImplWithRandom(String algorithm, SecurityProvider provider, RandomFactory randomFactory)
The constructor.- Parameters:
algorithm
- thealgorithm
.provider
- the securityProvider
.randomFactory
- theRandomFactory
to use.
-
-
Method Detail
-
getRandomFactory
protected RandomFactory getRandomFactory()
- Returns:
- the
RandomFactory
.
-
createSecureRandom
protected SecureRandom createSecureRandom()
- Returns:
- a new
SecureRandom
. - See Also:
RandomFactory.newSecureRandom()
-
-