All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebean.config.Encryptor Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.config;

/**
 * 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 * */ public interface Encryptor { /** * Encrypt the data using the key. */ byte[] encrypt(byte[] data, EncryptKey key); /** * Decrypt the data using the key. */ byte[] decrypt(byte[] data, EncryptKey key); /** * Encrypt the formatted string value using a key. */ byte[] encryptString(String formattedValue, EncryptKey key); /** * Decrypt the data returning a formatted string value using a key. */ String decryptString(byte[] data, EncryptKey key); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy