Class EncryptionKeyProvider.KeyVersion

java.lang.Object
de.otto.kafka.messaging.e2ee.EncryptionKeyProvider.KeyVersion
Enclosing interface:
EncryptionKeyProvider

public static final class EncryptionKeyProvider.KeyVersion extends Object
base64 and URL-Encoded encoded AES key
  • Constructor Details

    • KeyVersion

      public KeyVersion(int version, String encodedKey)
      Creates a key version object without the encryptionKeyAttributeName. This is used for Field-Level-Encryption.
      Parameters:
      version - the version of the Vault entry
      encodedKey - the value of the key within Vault. The format is base64 with probably some CR and/or LF characters at the end.
    • KeyVersion

      public KeyVersion(int version, String encryptionKeyAttributeName, String encodedKey)
      Parameters:
      version - the version of the Vault entry
      encryptionKeyAttributeName - 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

      public String encryptionKeyAttributeName()
      Returns:
      JSON property name of the key within Vault. It can be null for Field-Level-Encryption.
    • encodedKey

      public String 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object