Package org.apache.orc.impl.reader
Class ReaderEncryptionKey
java.lang.Object
org.apache.orc.impl.reader.ReaderEncryptionKey
- All Implemented Interfaces:
Comparable<EncryptionKey>,EncryptionKey
This tracks the keys for reading encrypted columns.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStore the state of whether we've tried to decrypt a local key using this key or not. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NotNull EncryptionKey other) booleanThe encryption algorithm for this key.The columns that are encrypted with this key.The name of the key.intThe version of the key.getState()inthashCode()booleanIs the key available to this user?voidvoidtoString()
-
Constructor Details
-
ReaderEncryptionKey
-
-
Method Details
-
getKeyName
Description copied from interface:EncryptionKeyThe name of the key.- Specified by:
getKeyNamein interfaceEncryptionKey- Returns:
- the name
-
getKeyVersion
public int getKeyVersion()Description copied from interface:EncryptionKeyThe version of the key.- Specified by:
getKeyVersionin interfaceEncryptionKey- Returns:
- the version, which for most KeyProviders start at 0.
-
getAlgorithm
Description copied from interface:EncryptionKeyThe encryption algorithm for this key.- Specified by:
getAlgorithmin interfaceEncryptionKey- Returns:
- the encryption algorithm
-
getEncryptionRoots
Description copied from interface:EncryptionKeyThe columns that are encrypted with this key.- Specified by:
getEncryptionRootsin interfaceEncryptionKey- Returns:
- the list of columns
-
getMetadata
-
getState
-
setFailure
public void setFailure() -
setSuccess
public void setSuccess() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<EncryptionKey>
-
toString
-
isAvailable
public boolean isAvailable()Description copied from interface:EncryptionKeyIs the key available to this user?- Specified by:
isAvailablein interfaceEncryptionKey- Returns:
- true if the key is available
-