-
- All Implemented Interfaces:
CryptoAlgorithm
,AbstractDecryptor
,AbstractGetNonceSize
,Cryptor
,Decryptor
,CryptoProcessor
public class DecryptorImplCipher extends CryptorImplCipher implements AbstractDecryptor
- 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 DecryptorImplCipher(RandomFactory randomFactory, CryptorConfig config, Key key)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isEncryptor()
-
Methods inherited from class io.github.mmm.crypto.crypt.CryptorImplCipher
crypt, getAlgorithm, getCipher, getConfig, getMode, getNonceSize, reset, wrapSecurityException
-
Methods inherited from class io.github.mmm.crypto.algorithm.AbstractCryptoAlgorithmWithRandom
createSecureRandom, 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.crypt.AbstractDecryptor
combine, wrapStream
-
Methods inherited from interface io.github.mmm.crypto.crypt.AbstractGetNonceSize
getNonceSize
-
Methods inherited from interface io.github.mmm.crypto.algorithm.CryptoAlgorithm
getAlgorithm
-
Methods inherited from interface io.github.mmm.crypto.CryptoProcessor
process, process, process, reset
-
-
-
-
Constructor Detail
-
DecryptorImplCipher
public DecryptorImplCipher(RandomFactory randomFactory, CryptorConfig config, Key key)
The constructor.- Parameters:
randomFactory
- theRandomFactory
to use.config
- theCryptorConfig
.key
- theKey
to use.
-
-
Method Detail
-
isEncryptor
protected boolean isEncryptor()
- Specified by:
isEncryptor
in classCryptorImplCipher
- Returns:
true
ifEncryptor
,false
ifDecryptor
.
-
-