public interface EncryptionService
Modifier and Type | Field and Description |
---|---|
static String |
ENCRYPTION_POST_PREFIX |
static String |
HASH_POST_PREFIX |
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String ciphertext)
Decrypts a value
|
byte[] |
decryptBytes(byte[] ciphertext)
Decrypts a value
|
String |
encrypt(Object valueToHide)
Encrypts a value
|
byte[] |
encryptBytes(byte[] valueToHide)
Encrypts a value
|
String |
hash(Object valueToHide)
Hashes a value (for one-way transformations)
|
boolean |
isEnabled()
Returns true if encryption is enabled within KEW, false otherwise.
|
static final String ENCRYPTION_POST_PREFIX
static final String HASH_POST_PREFIX
String encrypt(Object valueToHide) throws GeneralSecurityException
valueToHide
- - original valueGeneralSecurityException
byte[] encryptBytes(byte[] valueToHide) throws GeneralSecurityException
valueToHide
- - original valueGeneralSecurityException
String decrypt(String ciphertext) throws GeneralSecurityException
ciphertext
- - encrypted valueGeneralSecurityException
byte[] decryptBytes(byte[] ciphertext) throws GeneralSecurityException
ciphertext
- - encrypted valueGeneralSecurityException
boolean isEnabled()
String hash(Object valueToHide) throws GeneralSecurityException
valueToHide
- - original valueGeneralSecurityException
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.