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 Cipher
initializeCipher(Key key)
CipherInputStream
openStream()
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:DelegatingPayload
Creates a new InputStream object of the payload.- Specified by:
openStream
in interfacePayload
- Overrides:
openStream
in classDelegatingPayload
- Throws:
IOException
-
-