Package de.otto.kafka.messaging.e2ee
Class EncryptionKeyProvider.KeyVersion
java.lang.Object
de.otto.kafka.messaging.e2ee.EncryptionKeyProvider.KeyVersion
- Enclosing interface:
- EncryptionKeyProvider
base64 and URL-Encoded encoded AES key
-
Constructor Summary
ConstructorsConstructorDescriptionKeyVersion(int version, String encodedKey) Creates a key version object without the encryptionKeyAttributeName.KeyVersion(int version, String encryptionKeyAttributeName, String encodedKey) -
Method Summary
-
Constructor Details
-
KeyVersion
Creates a key version object without the encryptionKeyAttributeName. This is used for Field-Level-Encryption.- Parameters:
version- the version of the Vault entryencodedKey- the value of the key within Vault. The format is base64 with probably some CR and/or LF characters at the end.
-
KeyVersion
- Parameters:
version- the version of the Vault entryencryptionKeyAttributeName- JSON property name of the key within Vault.encodedKey- the value of the key within Vault. The format is base64 with probably some CR and/or LF characters at the end.
-
-
Method Details
-
version
public int version()- Returns:
- the version of the Vault entry
-
encryptionKeyAttributeName
- Returns:
- JSON property name of the key within Vault. It can be
nullfor Field-Level-Encryption.
-
encodedKey
- Returns:
- the value of the key within Vault. The format is base64 with probably some CR and/or LF characters at the end.
-
equals
-
hashCode
public int hashCode()
-