001package com.avaje.ebean.config;
002
003/**
004 * Determine keys used for encryption and decryption.
005 * 
006 * @author rbygrave
007 */
008public interface EncryptKeyManager {
009
010  /**
011   * Initialise the EncryptKeyManager.
012   * <p>
013   * This gives the EncryptKeyManager the opportunity to get keys etc.
014   * </p>
015   */
016  void initialise();
017
018  /**
019   * Return the key used to encrypt and decrypt a property mapping to the given
020   * table and column.
021   */
022  EncryptKey getEncryptKey(String tableName, String columnName);
023}