public class WriterEncryptionKey extends Object implements EncryptionKey
| Constructor and Description |
|---|
WriterEncryptionKey(HadoopShims.KeyMetadata key) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRoot(WriterEncryptionVariant root) |
int |
compareTo(@NotNull EncryptionKey other) |
boolean |
equals(Object other) |
EncryptionAlgorithm |
getAlgorithm()
The encryption algorithm for this key.
|
WriterEncryptionVariant[] |
getEncryptionRoots()
The columns that are encrypted with this key.
|
int |
getId() |
String |
getKeyName()
The name of the key.
|
int |
getKeyVersion()
The version of the key.
|
HadoopShims.KeyMetadata |
getMetadata() |
int |
hashCode() |
boolean |
isAvailable()
Is the key available to this user?
|
void |
setId(int id) |
void |
sortRoots() |
String |
toString() |
public WriterEncryptionKey(HadoopShims.KeyMetadata key)
public void addRoot(WriterEncryptionVariant root)
public HadoopShims.KeyMetadata getMetadata()
public void setId(int id)
public String getKeyName()
EncryptionKeygetKeyName in interface EncryptionKeypublic int getKeyVersion()
EncryptionKeygetKeyVersion in interface EncryptionKeypublic EncryptionAlgorithm getAlgorithm()
EncryptionKeygetAlgorithm in interface EncryptionKeypublic WriterEncryptionVariant[] getEncryptionRoots()
EncryptionKeygetEncryptionRoots in interface EncryptionKeypublic boolean isAvailable()
EncryptionKeyisAvailable in interface EncryptionKeypublic int getId()
public void sortRoots()
public int compareTo(@NotNull
@NotNull EncryptionKey other)
compareTo in interface Comparable<EncryptionKey>Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.