|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.DefaultBinaryManager org.nuxeo.ecm.core.storage.sql.XORBinaryManager
public class XORBinaryManager
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.
Nested Class Summary | |
---|---|
static class |
XORBinaryManager.XORBinaryScrambler
A BinaryScrambler that does an XOR with the given pattern. |
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.sql.DefaultBinaryManager |
---|
DefaultBinaryManager.DefaultBinaryGarbageCollector, DefaultBinaryManager.NullBinaryScrambler, DefaultBinaryManager.ScrambledBinary, DefaultBinaryManager.ScrambledFileInputStream, DefaultBinaryManager.ScrambledStreamSource |
Field Summary |
---|
Fields inherited from class org.nuxeo.ecm.core.storage.sql.DefaultBinaryManager |
---|
CONFIG_FILE, DATA, DEFAULT_DEPTH, DEFAULT_DIGEST, DEFAULT_PATH, MAX_BUF_SIZE, MIN_BUF_SIZE, TMP |
Constructor Summary | |
---|---|
XORBinaryManager()
|
Method Summary | |
---|---|
void |
initialize(RepositoryDescriptor repositoryDescriptor)
Initializer. |
Methods inherited from class org.nuxeo.ecm.core.storage.sql.DefaultBinaryManager |
---|
getBinary, getBinary, getFileForDigest, getGarbageCollector, getStorageDir, toHexString, touch |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XORBinaryManager()
Method Detail |
---|
public void initialize(RepositoryDescriptor repositoryDescriptor) throws IOException
BinaryManager
initialize
in interface BinaryManager
initialize
in class DefaultBinaryManager
IOException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |