- Enclosing class:
- CipherCodec
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface CipherCodec.CipherSupplier
-
Method Summary
Modifier and Type Method Description default CipherCodec.KeyDescriptorencryptionKey()Returns the latestCipherCodec.KeyDescriptorto use for encryption.Cipherget(CipherCodec.KeyDescriptor keyDescriptor)Creates a newCipher.
-
Method Details
-
get
Creates a newCipher.- Parameters:
keyDescriptor- the key to use for the returnedCipher.- Returns:
- a new
Cipher. - Throws:
GeneralSecurityException
-
encryptionKey
Returns the latestCipherCodec.KeyDescriptorto use for encryption.- Returns:
- the
CipherCodec.KeyDescriptorto use for encryption.
-