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()
EncryptionKey
getKeyName
in interface EncryptionKey
public int getKeyVersion()
EncryptionKey
getKeyVersion
in interface EncryptionKey
public EncryptionAlgorithm getAlgorithm()
EncryptionKey
getAlgorithm
in interface EncryptionKey
public ReaderEncryptionVariant[] getEncryptionRoots()
EncryptionKey
getEncryptionRoots
in interface EncryptionKey
public 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()
EncryptionKey
isAvailable
in interface EncryptionKey
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.