|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.storage.AbstractStorageProvider
org.apache.james.mime4j.storage.CipherStorageProvider
public class CipherStorageProvider
A StorageProvider
that transparently scrambles and unscrambles the
data stored by another StorageProvider
.
Example usage:
StorageProvider mistrusted = new TempFileStorageProvider(); StorageProvider enciphered = new CipherStorageProvider(mistrusted); StorageProvider provider = new ThresholdStorageProvider(enciphered); DefaultStorageProvider.setInstance(provider);
Constructor Summary | |
---|---|
CipherStorageProvider(StorageProvider backend)
Creates a new CipherStorageProvider for the given back-end
using the Blowfish cipher algorithm. |
|
CipherStorageProvider(StorageProvider backend,
java.lang.String algorithm)
Creates a new CipherStorageProvider for the given back-end
and cipher algorithm. |
Method Summary | |
---|---|
StorageOutputStream |
createStorageOutputStream()
Creates a StorageOutputStream where data to be stored can be
written to. |
Methods inherited from class org.apache.james.mime4j.storage.AbstractStorageProvider |
---|
store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CipherStorageProvider(StorageProvider backend)
CipherStorageProvider
for the given back-end
using the Blowfish cipher algorithm.
backend
- back-end storage strategy to encrypt.public CipherStorageProvider(StorageProvider backend, java.lang.String algorithm)
CipherStorageProvider
for the given back-end
and cipher algorithm.
backend
- back-end storage strategy to encrypt.algorithm
- the name of the symmetric block cipher algorithm such as
"Blowfish", "AES" or "RC2".Method Detail |
---|
public StorageOutputStream createStorageOutputStream() throws java.io.IOException
StorageProvider
StorageOutputStream
where data to be stored can be
written to. Subsequently the user can call
toStorage()
on that object to get
a Storage
instance that holds the data that has been written.
StorageOutputStream
where data can be written to.
java.io.IOException
- if an I/O error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |