public class EncryptionSecrets extends Object implements org.apache.hadoop.io.Writable, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SECRET_LENGTH |
| Constructor and Description |
|---|
EncryptionSecrets()
Empty constructor, for use in marshalling.
|
EncryptionSecrets(S3AEncryptionMethods encryptionAlgorithm,
String encryptionKey)
Create a pair of secrets.
|
EncryptionSecrets(String encryptionAlgorithm,
String encryptionKey)
Create a pair of secrets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getEncryptionAlgorithm() |
String |
getEncryptionKey() |
S3AEncryptionMethods |
getEncryptionMethod()
Get the encryption method.
|
boolean |
hasEncryptionAlgorithm()
Does this instance have encryption options?
That is: is the algorithm non-null.
|
boolean |
hasEncryptionKey()
Does this instance have an encryption key?
|
int |
hashCode() |
void |
readFields(DataInput in)
Read in from the writable stream.
|
String |
toString()
String function returns the encryption mode but not any other
secrets.
|
void |
write(DataOutput out)
Write out the encryption secrets.
|
public static final int MAX_SECRET_LENGTH
public EncryptionSecrets()
public EncryptionSecrets(S3AEncryptionMethods encryptionAlgorithm, String encryptionKey) throws IOException
encryptionAlgorithm - algorithm enumeration.encryptionKey - key/key reference.IOException - failure to initialize.public EncryptionSecrets(String encryptionAlgorithm, String encryptionKey) throws IOException
encryptionAlgorithm - algorithm nameencryptionKey - key/key reference.IOException - failure to initialize.public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writableout - DataOutput to serialize this object into.IOException - IO failurepublic void readFields(DataInput in) throws IOException
init().readFields in interface org.apache.hadoop.io.Writablein - DataInput to deserialize this object from.IOException - failure to read/validate data.public String getEncryptionAlgorithm()
public String getEncryptionKey()
public boolean hasEncryptionAlgorithm()
public boolean hasEncryptionKey()
public S3AEncryptionMethods getEncryptionMethod()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.