public class EncryptionConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
encryptionKdfSalt
The encryption KDF salt
|
private java.lang.String |
encryptionKey
The encryption key
|
private int |
encryptionMode
The encryption mode
|
| Constructor and Description |
|---|
EncryptionConfig()
Default constructor for EncryptionConfig.
|
EncryptionConfig(int encryptionMode,
java.lang.String encryptionKey,
byte[] encryptionKdfSalt)
Constructs EncryptionConfig with encryption mode, key, and KDF salt.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncryptionKdfSalt()
Gets the encryption KDF salt.
|
java.lang.String |
getEncryptionKey()
Gets the encryption key.
|
int |
getEncryptionMode()
Gets the encryption mode.
|
void |
setEncryptionKdfSalt(byte[] encryptionKdfSalt)
Sets the encryption KDF salt.
|
void |
setEncryptionKey(java.lang.String encryptionKey)
Sets the encryption key.
|
void |
setEncryptionMode(int encryptionMode)
Sets the encryption mode.
|
java.lang.String |
toString() |
private int encryptionMode
private java.lang.String encryptionKey
private byte[] encryptionKdfSalt
public EncryptionConfig()
public EncryptionConfig(int encryptionMode,
java.lang.String encryptionKey,
byte[] encryptionKdfSalt)
encryptionMode - The encryption modeencryptionKey - The encryption keyencryptionKdfSalt - The encryption KDF saltpublic int getEncryptionMode()
public void setEncryptionMode(int encryptionMode)
encryptionMode - The encryption modepublic java.lang.String getEncryptionKey()
public void setEncryptionKey(java.lang.String encryptionKey)
encryptionKey - The encryption keypublic byte[] getEncryptionKdfSalt()
public void setEncryptionKdfSalt(byte[] encryptionKdfSalt)
encryptionKdfSalt - The encryption KDF saltpublic java.lang.String toString()
toString in class java.lang.Object