org.kuali.rice.core.api.encryption
Interface EncryptionService

All Known Implementing Classes:
DemonstrationGradeEncryptionServiceImpl, NoEncryptionEncryptionServiceImpl

public interface EncryptionService

This is a service interface to consolidate Kuali encryption operation

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static String ENCRYPTION_POST_PREFIX
           
static String HASH_POST_PREFIX
           
 
Method Summary
 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.
 

Field Detail

ENCRYPTION_POST_PREFIX

static final String ENCRYPTION_POST_PREFIX
See Also:
Constant Field Values

HASH_POST_PREFIX

static final String HASH_POST_PREFIX
See Also:
Constant Field Values
Method Detail

encrypt

String encrypt(Object valueToHide)
               throws GeneralSecurityException
Encrypts a value

Parameters:
valueToHide - - original value
Returns:
encrypted value
Throws:
GeneralSecurityException

encryptBytes

byte[] encryptBytes(byte[] valueToHide)
                    throws GeneralSecurityException
Encrypts a value

Parameters:
valueToHide - - original value
Returns:
encrypted value
Throws:
GeneralSecurityException

decrypt

String decrypt(String ciphertext)
               throws GeneralSecurityException
Decrypts a value

Parameters:
ciphertext - - encrypted value
Returns:
decrypted value
Throws:
GeneralSecurityException

decryptBytes

byte[] decryptBytes(byte[] ciphertext)
                    throws GeneralSecurityException
Decrypts a value

Parameters:
ciphertext - - encrypted value
Returns:
decrypted value
Throws:
GeneralSecurityException

isEnabled

boolean isEnabled()
Returns true if encryption is enabled within KEW, false otherwise.


hash

String hash(Object valueToHide)
            throws GeneralSecurityException
Hashes a value (for one-way transformations)

Parameters:
valueToHide - - original value
Returns:
encrypted value
Throws:
GeneralSecurityException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.