org.nuxeo.ecm.core.storage.sql
Class XORBinaryManager
java.lang.Object
org.nuxeo.ecm.core.storage.sql.DefaultBinaryManager
org.nuxeo.ecm.core.storage.sql.XORBinaryManager
- All Implemented Interfaces:
- BinaryManager
public class XORBinaryManager
- extends DefaultBinaryManager
A simple binary manager that "hides" binaries on the filesystem by scrambling
them on write and unscrambling them on read using XOR.
The RepositoryDescriptor
holds a key that can be used to drive the
scrambling/unscrambling.
This is to prevent casual reading of the files, but of course the algorithm
and key for scrambling are available on the system as well, so this not a
secure store.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XORBinaryManager
public XORBinaryManager()
initialize
public void initialize(RepositoryDescriptor repositoryDescriptor)
throws java.io.IOException
- Description copied from interface:
BinaryManager
- Initializer.
- Specified by:
initialize
in interface BinaryManager
- Overrides:
initialize
in class DefaultBinaryManager
- Throws:
java.io.IOException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.