Interface EncryptionKey

All Superinterfaces:
Comparable<EncryptionKey>
All Known Implementing Classes:
ReaderEncryptionKey, WriterEncryptionKey

public interface EncryptionKey extends Comparable<EncryptionKey>
Information about a key used for column encryption in an ORC file.
  • Method Details

    • getKeyName

      String getKeyName()
      The name of the key.
      Returns:
      the name
    • getKeyVersion

      int getKeyVersion()
      The version of the key.
      Returns:
      the version, which for most KeyProviders start at 0.
    • getAlgorithm

      EncryptionAlgorithm getAlgorithm()
      The encryption algorithm for this key.
      Returns:
      the encryption algorithm
    • getEncryptionRoots

      EncryptionVariant[] getEncryptionRoots()
      The columns that are encrypted with this key.
      Returns:
      the list of columns
    • isAvailable

      boolean isAvailable()
      Is the key available to this user?
      Returns:
      true if the key is available