ConfigurationEncrytionUtil
, SessionEncrytionUtil
public abstract class AbstractEncrytionUtil extends Object
Modifier and Type | Field | Description |
---|---|---|
protected static String |
CIPHER_MODE |
|
static int |
GCM_NONCE_LENGTH |
|
static int |
GCM_TAG_LENGTH |
|
protected static String |
KEYNAME |
Constructor | Description |
---|---|
AbstractEncrytionUtil() |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
decrypt(EncryptedData data) |
|
EncryptedData |
encrypt(byte[] data) |
|
protected abstract String |
getKey() |
|
protected abstract String |
getSalt() |
|
protected void |
initialize(String key,
String salt) |
protected static final String CIPHER_MODE
public static final int GCM_NONCE_LENGTH
public static final int GCM_TAG_LENGTH
protected static final String KEYNAME
public AbstractEncrytionUtil() throws DatabaseEncryptionException
DatabaseEncryptionException
protected abstract String getSalt()
protected abstract String getKey()
protected void initialize(String key, String salt) throws DatabaseEncryptionException
DatabaseEncryptionException
public EncryptedData encrypt(byte[] data) throws BuildException
BuildException
public byte[] decrypt(EncryptedData data) throws BuildException
BuildException
Copyright © 2019. All rights reserved.