Interface CipherFactory
- All Known Implementing Classes:
AesCipherFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory for
Cipher.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionCreates aCipher.default intAllows overriding the init vector size.default voidinit(SourceContext context) Allows for theCipherFactoryto be configured.
-
Method Details
-
init
Allows for theCipherFactoryto be configured.- Parameters:
context-SourceContext.
-
getInitVectorSize
default int getInitVectorSize()Allows overriding the init vector size.- Returns:
- Init vector size.
-
createCipher
Creates aCipher.
-