public class EncryptionUtil extends Object implements EncryptionConstants
ENCRYPTION_ALGORITHM, ENCRYPTION_KEY| Constructor and Description |
|---|
EncryptionUtil(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String value) |
String |
encrypt(String value) |
Properties |
encryptProperties(List<String> propertyNames) |
public EncryptionUtil(Properties properties) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException
propertiesFile - - the file which contains entry for key, algorithm and its sub type.NoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionpublic String encrypt(String value) throws IllegalBlockSizeException, BadPaddingException
public String decrypt(String value) throws IllegalBlockSizeException, BadPaddingException
public Properties encryptProperties(List<String> propertyNames) throws IllegalBlockSizeException, BadPaddingException
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.