public abstract class AbstractEncrytionUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CIPHER_MODE |
protected static String |
KEYNAME |
| Constructor and Description |
|---|
AbstractEncrytionUtil() |
| Modifier and Type | Method and 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
protected static final String KEYNAME
public AbstractEncrytionUtil()
throws DatabaseEncryptionException
DatabaseEncryptionExceptionprotected abstract String getSalt()
protected abstract String getKey()
protected void initialize(String key, String salt) throws DatabaseEncryptionException
DatabaseEncryptionExceptionpublic EncryptedData encrypt(byte[] data) throws BuildException
BuildExceptionpublic byte[] decrypt(EncryptedData data) throws BuildException
BuildExceptionCopyright © 2017. All rights reserved.