-
- All Implemented Interfaces:
CryptoAlgorithm,AbstractEncryptor,AbstractGetNonceSize,Cryptor,Encryptor,CryptoProcessor
public class EncryptorImplCiper extends CryptorImplCipher implements AbstractEncryptor
- 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 EncryptorImplCiper(RandomFactory randomFactory, CryptorConfig config, Key key)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisEncryptor()-
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.AbstractEncryptor
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
-
EncryptorImplCiper
public EncryptorImplCiper(RandomFactory randomFactory, CryptorConfig config, Key key)
The constructor.- Parameters:
randomFactory- theRandomFactoryto use.config- theCryptorConfig.key- theKeyto use.
-
-
Method Detail
-
isEncryptor
protected boolean isEncryptor()
- Specified by:
isEncryptorin classCryptorImplCipher- Returns:
trueifEncryptor,falseifDecryptor.
-
-