| 
 | Cumulus4j API (1.2.0-SNAPSHOT) | |||||||||
| 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_DUMPDump 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) ObjectContainerfrom the encrypted byte-array in
 theDataEntry.valueproperty. | 
|  IndexValue | decryptIndexEntry(CryptoContext cryptoContext,
                                   IndexEntry indexEntry)Get a plain (unencrypted) IndexValuefrom the encrypted byte-array in
 theIndexEntry.indexValueproperty. | 
|  void | encryptDataEntry(CryptoContext cryptoContext,
                                 DataEntry dataEntry,
                                 ObjectContainer objectContainer)Encrypt the given plain objectContainerand store the cipher-text into the givendataEntry. | 
|  void | encryptIndexEntry(CryptoContext cryptoContext,
                                   IndexEntry indexEntry,
                                   IndexValue indexValue)Encrypt the given plain indexValueand store the cipher-text into the givenindexEntry. | 
| 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.2.0-SNAPSHOT) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||