public class ReaderEncryptionKey extends Object implements EncryptionKey
| Modifier and Type | Class and Description |
|---|---|
static class |
ReaderEncryptionKey.State
Store the state of whether we've tried to decrypt a local key using this
key or not.
|
| Constructor and Description |
|---|
ReaderEncryptionKey(OrcProto.EncryptionKey key) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull EncryptionKey other) |
boolean |
equals(Object other) |
EncryptionAlgorithm |
getAlgorithm()
The encryption algorithm for this key.
|
ReaderEncryptionVariant[] |
getEncryptionRoots()
The columns that are encrypted with this key.
|
String |
getKeyName()
The name of the key.
|
int |
getKeyVersion()
The version of the key.
|
HadoopShims.KeyMetadata |
getMetadata() |
ReaderEncryptionKey.State |
getState() |
int |
hashCode() |
boolean |
isAvailable()
Is the key available to this user?
|
void |
setFailure() |
void |
setSuccess() |
String |
toString() |
public ReaderEncryptionKey(OrcProto.EncryptionKey key)
public String getKeyName()
EncryptionKeygetKeyName in interface EncryptionKeypublic int getKeyVersion()
EncryptionKeygetKeyVersion in interface EncryptionKeypublic EncryptionAlgorithm getAlgorithm()
EncryptionKeygetAlgorithm in interface EncryptionKeypublic ReaderEncryptionVariant[] getEncryptionRoots()
EncryptionKeygetEncryptionRoots in interface EncryptionKeypublic HadoopShims.KeyMetadata getMetadata()
public ReaderEncryptionKey.State getState()
public void setFailure()
public void setSuccess()
public int compareTo(@NotNull
@NotNull EncryptionKey other)
compareTo in interface Comparable<EncryptionKey>public boolean isAvailable()
EncryptionKeyisAvailable in interface EncryptionKeyCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.