com.avaje.ebean.config
Interface Encryptor


public interface Encryptor

Used for Java side encryption of properties when DB encryption is not used.

By default this is used on non-varchar types such as Blobs.

Author:
rbygrave

Method Summary
 byte[] decrypt(byte[] data, EncryptKey key)
          Decrypt the data using the key.
 String decryptString(byte[] data, EncryptKey key)
          Decrypt the data returning a formatted string value using a key.
 byte[] encrypt(byte[] data, EncryptKey key)
          Encrypt the data using the key.
 byte[] encryptString(String formattedValue, EncryptKey key)
          Encrypt the formatted string value using a key.
 

Method Detail

encrypt

byte[] encrypt(byte[] data,
               EncryptKey key)
Encrypt the data using the key.


decrypt

byte[] decrypt(byte[] data,
               EncryptKey key)
Decrypt the data using the key.


encryptString

byte[] encryptString(String formattedValue,
                     EncryptKey key)
Encrypt the formatted string value using a key.


decryptString

String decryptString(byte[] data,
                     EncryptKey key)
Decrypt the data returning a formatted string value using a key.



Copyright © 2010. All Rights Reserved.