public class EncryptionConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
encryptionKdfSalt
The salt for the encryption key.
|
private java.lang.String |
encryptionKey
The encryption key in the string format.
|
private Constants.EncryptionMode |
encryptionMode
The encryption mode.
|
| Constructor and Description |
|---|
EncryptionConfig()
Constructs an EncryptionConfig object with default values.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncryptionKdfSalt()
Gets the encryption salt.
|
java.lang.String |
getEncryptionKey()
Gets the encryption key.
|
Constants.EncryptionMode |
getEncryptionMode()
Gets the encryption mode.
|
java.lang.String |
getEncryptionString()
Gets the encryption mode as a string.
|
void |
setEncryptionKdfSalt(byte[] encryptionKdfSalt)
Sets the encryption salt.
|
void |
setEncryptionKey(java.lang.String encryptionKey)
Sets the encryption key.
|
void |
setEncryptionMode(Constants.EncryptionMode encryptionMode)
Sets the encryption mode.
|
java.lang.String |
toString()
Returns a string representation of the EncryptionConfig object.
|
private Constants.EncryptionMode encryptionMode
Constants.EncryptionMode.private java.lang.String encryptionKey
ERR_INVALID_ARGUMENT (-2).private byte[] encryptionKdfSalt
public EncryptionConfig()
public Constants.EncryptionMode getEncryptionMode()
public void setEncryptionMode(Constants.EncryptionMode encryptionMode)
encryptionMode - The encryption mode to set.public java.lang.String getEncryptionKey()
public void setEncryptionKey(java.lang.String encryptionKey)
encryptionKey - The encryption key to set.public byte[] getEncryptionKdfSalt()
public void setEncryptionKdfSalt(byte[] encryptionKdfSalt)
encryptionKdfSalt - The encryption salt to set. It must be 32 bytes
long.java.lang.IllegalArgumentException - if the encryption salt is not 32 bytes long.public java.lang.String getEncryptionString()
public java.lang.String toString()
toString in class java.lang.Object