Package org.apache.orc
Interface EncryptionKey
- All Superinterfaces:
Comparable<EncryptionKey>
- All Known Implementing Classes:
ReaderEncryptionKey
,WriterEncryptionKey
Information about a key used for column encryption in an ORC file.
-
Method Summary
Modifier and TypeMethodDescriptionThe encryption algorithm for this key.The columns that are encrypted with this key.The name of the key.int
The version of the key.boolean
Is the key available to this user?Methods inherited from interface java.lang.Comparable
compareTo
-
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
-