Module io.github.mmm.crypto
Package io.github.mmm.crypto.algorithm
Class AbstractCryptoAlgorithmWithRandom
- java.lang.Object
-
- io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
-
- io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithProvider
-
- io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithRandom
-
- All Implemented Interfaces:
CryptoAlgorithm
- Direct Known Subclasses:
CryptorFactoryImpl
,CryptorImplCipher
,SignatureProcessorFactoryImpl
public abstract class AbstractCryptoAlgorithmWithRandom extends AbstractCryptoAlgorithmWithProvider
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 AbstractCryptoAlgorithmWithRandom(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.AbstractCryptoAlgorithmWithProvider
getProvider
-
Methods inherited from class io.github.mmm.crypto.algorithm.AbstractSecurityAlgorithm
creationFailedException, creationFailedException, creationFailedException, creationFailedException, getAlgorithm, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.crypto.algorithm.CryptoAlgorithm
getAlgorithm
-
-
-
-
Constructor Detail
-
AbstractCryptoAlgorithmWithRandom
public AbstractCryptoAlgorithmWithRandom(SecurityProvider provider, RandomFactory randomFactory)
The constructor.- Parameters:
provider
- theSecurityProvider
.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()
-
-