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()
EncryptionKey
getKeyName
in interface EncryptionKey
public int getKeyVersion()
EncryptionKey
getKeyVersion
in interface EncryptionKey
public EncryptionAlgorithm getAlgorithm()
EncryptionKey
getAlgorithm
in interface EncryptionKey
public WriterEncryptionVariant[] getEncryptionRoots()
EncryptionKey
getEncryptionRoots
in interface EncryptionKey
public boolean isAvailable()
EncryptionKey
isAvailable
in interface EncryptionKey
public int getId()
public void sortRoots()
public int compareTo(@NotNull @NotNull EncryptionKey other)
compareTo
in interface Comparable<EncryptionKey>
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.