Interface SymmetricOperatorFactory<T extends Parameters>
- Type Parameters:
T- the parameters type for the operators the factory creates.
- All Known Implementing Classes:
AES.OperatorFactory, ARC4.OperatorFactory, ARIA.OperatorFactory, Blowfish.OperatorFactory, Camellia.OperatorFactory, CAST5.OperatorFactory, ChaCha20.OperatorFactory, DES.OperatorFactory, FipsAES.OperatorFactory, FipsSymmetricOperatorFactory, FipsTripleDES.OperatorFactory, GOST28147.OperatorFactory, IDEA.OperatorFactory, RC2.OperatorFactory, SEED.OperatorFactory, Serpent.OperatorFactory, SHACAL2.OperatorFactory, TripleDES.OperatorFactory, Twofish.OperatorFactory
public interface SymmetricOperatorFactory<T extends Parameters>
Interface describing an operator factory that creates operators for doing
encryption and decryption using symmetric ciphers.
-
Method Summary
Modifier and TypeMethodDescriptioncreateInputDecryptor(SymmetricKey key, T parameter) Return a decryptor that operates on an input stream.createOutputDecryptor(SymmetricKey key, T parameter) Return a decryptor that operates on an output stream.createOutputEncryptor(SymmetricKey key, T parameter) Return an encryptor that operates on an output stream.
-
Method Details
-
createOutputEncryptor
Return an encryptor that operates on an output stream.- Parameters:
key- the key to initialize the encryptor with.parameter- the parameters to use to initialize the encryptor.- Returns:
- an OutputEncryptor
-
createOutputDecryptor
Return a decryptor that operates on an output stream.- Parameters:
key- the key to initialize the encryptor with.parameter- the parameters to use to initialize the encryptor.- Returns:
- an OutputDecryptor.
-
createInputDecryptor
Return a decryptor that operates on an input stream.- Parameters:
key- the key to initialize the encryptor with.parameter- the parameters to use to initialize the encryptor.- Returns:
- an InputDecryptor.
-