cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1587817 - /cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
Date Wed, 16 Apr 2014 06:57:10 GMT
Author: aadamchik
Date: Wed Apr 16 06:57:09 2014
New Revision: 1587817

URL: http://svn.apache.org/r1587817
Log:
CAY-1916 cayenne-crypto module that enables data encryption for certain model attributes

allowing to bind enc key alias in a separate builder method to use with custom 'keySource'

Modified:
    cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java

Modified: cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java?rev=1587817&r1=1587816&r2=1587817&view=diff
==============================================================================
--- cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
(original)
+++ cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
Wed Apr 16 06:57:09 2014
@@ -143,6 +143,16 @@ public class CryptoModuleBuilder {
     }
 
     /**
+     * @param encryptionKeyAlias
+     *            The name of the key in the keystore that should be used for
+     *            encryption by default.
+     */
+    public CryptoModuleBuilder encryptionKeyAlias(String encryptionKeyAlias) {
+        this.encryptionKeyAlias = encryptionKeyAlias;
+        return this;
+    }
+
+    /**
      * Configures keystore parameters. The KeyStore must be of "jceks" type and
      * contain all needed secret keys for the target database. Currently all
      * keys must be protected with the same password.



Mime
View raw message