public class EncryptingPersistenceManager extends WrappedPersistenceManager
WrappedPersistenceManager that performs encryption on all string values
for all property dictionaries that get stored. These values are decrypted when the dictionaries
are loaded.
This allows the configuration data in the bundle cache to be fully encrypted.
See FELIX-4005 & FELIX-4556. This class cannot utilize Java 8 language constructs due to maven bundle plugin 2.3.7
| Constructor and Description |
|---|
EncryptingPersistenceManager(org.apache.felix.cm.PersistenceManager persistenceManager) |
EncryptingPersistenceManager(org.apache.felix.cm.PersistenceManager persistenceManager,
String passwordDirectory) |
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
getDictionaries() |
Dictionary |
load(String pid) |
void |
store(String pid,
Dictionary properties) |
close, delete, exists, getInnerPersistenceManagerpublic EncryptingPersistenceManager(org.apache.felix.cm.PersistenceManager persistenceManager)
public EncryptingPersistenceManager(org.apache.felix.cm.PersistenceManager persistenceManager,
String passwordDirectory)
public Enumeration getDictionaries() throws IOException
getDictionaries in interface org.apache.felix.cm.PersistenceManagergetDictionaries in class WrappedPersistenceManagerIOExceptionpublic Dictionary load(String pid) throws IOException
load in interface org.apache.felix.cm.PersistenceManagerload in class WrappedPersistenceManagerIOExceptionpublic void store(String pid, Dictionary properties) throws IOException
store in interface org.apache.felix.cm.PersistenceManagerstore in class WrappedPersistenceManagerIOExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.