Package org.jclouds.io.payloads
Class BaseCipherPayload
- java.lang.Object
-
- org.jclouds.io.payloads.DelegatingPayload
-
- org.jclouds.io.payloads.BaseCipherPayload
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Payload
- Direct Known Subclasses:
RSADecryptingPayload,RSAEncryptingPayload
public abstract class BaseCipherPayload extends DelegatingPayload
-
-
Constructor Summary
Constructors Constructor Description BaseCipherPayload(Crypto crypto, Payload delegate, Key key)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CipherinitializeCipher(Key key)CipherInputStreamopenStream()Creates a new InputStream object of the payload.-
Methods inherited from class org.jclouds.io.payloads.DelegatingPayload
close, equals, getContentMetadata, getDelegate, getInput, getRawContent, hashCode, isRepeatable, isSensitive, release, setContentMetadata, setSensitive
-
-
-
-
Field Detail
-
crypto
protected final Crypto crypto
-
-
Method Detail
-
openStream
public CipherInputStream openStream() throws IOException
Description copied from class:DelegatingPayloadCreates a new InputStream object of the payload.- Specified by:
openStreamin interfacePayload- Overrides:
openStreamin classDelegatingPayload- Throws:
IOException
-
-