Class CipherStorageProvider.CipherStorage

java.lang.Object
org.apache.james.mime4j.storage.CipherStorageProvider.CipherStorage
All Implemented Interfaces:
Storage
Enclosing class:
CipherStorageProvider

private static final class CipherStorageProvider.CipherStorage extends Object implements Storage
  • Field Details

    • encrypted

      private Storage encrypted
    • algorithm

      private final String algorithm
    • skeySpec

      private final SecretKeySpec skeySpec
  • Constructor Details

  • Method Details

    • delete

      public void delete()
      Description copied from interface: Storage
      Deletes the data held by this Storage as soon as possible. Deleting an already deleted Storage has no effect.
      Specified by:
      delete in interface Storage
    • getInputStream

      public InputStream getInputStream() throws IOException
      Description copied from interface: Storage
      Returns an InputStream that can be used to read the stored data. The input stream should be closed by the caller when it is no longer needed.

      Note: The stream should NOT be wrapped in a BufferedInputStream by the caller. If the implementing Storage creates a stream which would benefit from being buffered it is the Storage's responsibility to wrap it.

      Specified by:
      getInputStream in interface Storage
      Returns:
      an InputStream for reading the stored data.
      Throws:
      IOException - if an I/O error occurs.