cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1584623 - in /cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes: CbcBytesTransformerFactory.java CbcEncryptor.java EncryptorWithKeyName.java
Date Fri, 04 Apr 2014 12:02:44 GMT
Author: aadamchik
Date: Fri Apr  4 12:02:43 2014
New Revision: 1584623

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

BytesTransformer to encapsulate crypto protocol .. IN PROGRESS

Modified:
    cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcBytesTransformerFactory.java
    cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcEncryptor.java
    cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/EncryptorWithKeyName.java

Modified: cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcBytesTransformerFactory.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcBytesTransformerFactory.java?rev=1584623&r1=1584622&r2=1584623&view=diff
==============================================================================
--- cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcBytesTransformerFactory.java
(original)
+++ cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcBytesTransformerFactory.java
Fri Apr  4 12:02:43 2014
@@ -30,7 +30,10 @@ import org.apache.cayenne.crypto.Cayenne
 import org.apache.cayenne.crypto.cipher.CipherFactory;
 import org.apache.cayenne.crypto.key.KeySource;
 
-public class CbcBytesTransformerFactory implements BytesTransformerFactory {
+/**
+ * @since 3.2
+ */
+class CbcBytesTransformerFactory implements BytesTransformerFactory {
 
     private static final String KEY_NAME_CHARSET = "UTF-8";
 

Modified: cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcEncryptor.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcEncryptor.java?rev=1584623&r1=1584622&r2=1584623&view=diff
==============================================================================
--- cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcEncryptor.java
(original)
+++ cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/CbcEncryptor.java
Fri Apr  4 12:02:43 2014
@@ -38,7 +38,7 @@ import org.apache.cayenne.crypto.Cayenne
  * 
  * @since 3.2
  */
-public class CbcEncryptor implements BytesTransformer {
+class CbcEncryptor implements BytesTransformer {
 
     private Cipher cipher;
     private byte[] iv;

Modified: cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/EncryptorWithKeyName.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/EncryptorWithKeyName.java?rev=1584623&r1=1584622&r2=1584623&view=diff
==============================================================================
--- cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/EncryptorWithKeyName.java
(original)
+++ cayenne/main/trunk/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/bytes/EncryptorWithKeyName.java
Fri Apr  4 12:02:43 2014
@@ -20,13 +20,13 @@ package org.apache.cayenne.crypto.transf
 
 import org.apache.cayenne.crypto.CayenneCryptoException;
 
-public class EncryptorWithKeyName implements BytesTransformer {
+class EncryptorWithKeyName implements BytesTransformer {
 
     private BytesTransformer delegate;
     private int blockSize;
     private byte[] keyName;
 
-    public EncryptorWithKeyName(BytesTransformer delegate, byte[] keyName, int blockSize)
{
+    EncryptorWithKeyName(BytesTransformer delegate, byte[] keyName, int blockSize) {
         this.delegate = delegate;
         this.blockSize = blockSize;
         this.keyName = keyName;



Mime
View raw message