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
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 © 2017. All rights reserved.