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, getInnerPersistenceManager
public 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.PersistenceManager
getDictionaries
in class WrappedPersistenceManager
IOException
public Dictionary load(String pid) throws IOException
load
in interface org.apache.felix.cm.PersistenceManager
load
in class WrappedPersistenceManager
IOException
public void store(String pid, Dictionary properties) throws IOException
store
in interface org.apache.felix.cm.PersistenceManager
store
in class WrappedPersistenceManager
IOException
This work is licensed under a Creative Commons Attribution 4.0 International License.