| 
Cumulus4j API (1.1.1)  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cumulus4j.store.EncryptionHandler
public class EncryptionHandler
Singleton per PersistenceManagerFactory handling the encryption and decryption and thus the key management.
| Field Summary | |
|---|---|
static boolean | 
DEBUG_DUMP
Dump all plain texts to the system temp directory for debug reasons.  | 
static ThreadLocal<String> | 
debugDumpFileNameThreadLocal
 | 
| Constructor Summary | |
|---|---|
EncryptionHandler()
 | 
|
| Method Summary | |
|---|---|
 ObjectContainer | 
decryptDataEntry(CryptoContext cryptoContext,
                                 DataEntry dataEntry)
Get a plain (unencrypted) ObjectContainer from the encrypted byte-array in
 the DataEntry.value property. | 
 IndexValue | 
decryptIndexEntry(CryptoContext cryptoContext,
                                   IndexEntry indexEntry)
Get a plain (unencrypted) IndexValue from the encrypted byte-array in
 the IndexEntry.indexValue property. | 
 void | 
encryptDataEntry(CryptoContext cryptoContext,
                                 DataEntry dataEntry,
                                 ObjectContainer objectContainer)
Encrypt the given plain objectContainer and store the cipher-text into the given
 dataEntry. | 
 void | 
encryptIndexEntry(CryptoContext cryptoContext,
                                   IndexEntry indexEntry,
                                   IndexValue indexValue)
Encrypt the given plain indexValue and store the cipher-text into the given
 indexEntry. | 
static File | 
getDebugDumpDir()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final boolean DEBUG_DUMP
false in productive environments!
public static ThreadLocal<String> debugDumpFileNameThreadLocal
| Constructor Detail | 
|---|
public EncryptionHandler()
| Method Detail | 
|---|
public static File getDebugDumpDir()
public ObjectContainer decryptDataEntry(CryptoContext cryptoContext,
                                        DataEntry dataEntry)
ObjectContainer from the encrypted byte-array in
 the DataEntry.value property.
cryptoContext - the context.dataEntry - the DataEntry holding the encrypted data (read from).
ObjectContainer.encryptDataEntry(CryptoContext, DataEntry, ObjectContainer)
public void encryptDataEntry(CryptoContext cryptoContext,
                             DataEntry dataEntry,
                             ObjectContainer objectContainer)
objectContainer and store the cipher-text into the given
 dataEntry.
cryptoContext - the context.dataEntry - the DataEntry that should be holding the encrypted data (written into).objectContainer - the plain ObjectContainer (read from).decryptDataEntry(CryptoContext, DataEntry)
public IndexValue decryptIndexEntry(CryptoContext cryptoContext,
                                    IndexEntry indexEntry)
IndexValue from the encrypted byte-array in
 the IndexEntry.indexValue property.
cryptoContext - the context.indexEntry - the IndexEntry holding the encrypted data (read from).
IndexValue.
public void encryptIndexEntry(CryptoContext cryptoContext,
                              IndexEntry indexEntry,
                              IndexValue indexValue)
indexValue and store the cipher-text into the given
 indexEntry.
cryptoContext - the context.indexEntry - the IndexEntry that should be holding the encrypted data (written into).indexValue - the plain IndexValue (read from).
  | 
Cumulus4j API (1.1.1)  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||