Package io.lettuce.core.codec
Interface CipherCodec.CipherSupplier
-
- 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CipherCodec.KeyDescriptor
encryptionKey()
Returns the latestCipherCodec.KeyDescriptor
to use for encryption.Cipher
get(CipherCodec.KeyDescriptor keyDescriptor)
Creates a newCipher
.
-
-
-
Method Detail
-
get
Cipher get(CipherCodec.KeyDescriptor keyDescriptor) throws GeneralSecurityException
Creates a newCipher
.- Parameters:
keyDescriptor
- the key to use for the returnedCipher
.- Returns:
- a new
Cipher
. - Throws:
GeneralSecurityException
-
encryptionKey
default CipherCodec.KeyDescriptor encryptionKey()
Returns the latestCipherCodec.KeyDescriptor
to use for encryption.- Returns:
- the
CipherCodec.KeyDescriptor
to use for encryption.
-
-