org.jclouds.io.payloads
Class BaseCipherPayload
java.lang.Object
org.jclouds.io.payloads.DelegatingPayload
org.jclouds.io.payloads.BaseCipherPayload
- All Implemented Interfaces:
- com.google.common.io.InputSupplier<InputStream>, Closeable, Payload
- Direct Known Subclasses:
- RSADecryptingPayload, RSAEncryptingPayload
public abstract class BaseCipherPayload
- extends DelegatingPayload
crypto
protected final Crypto crypto
BaseCipherPayload
public BaseCipherPayload(Crypto crypto,
Payload delegate,
Key key)
initializeCipher
public abstract Cipher initializeCipher(Key key)
openStream
public CipherInputStream openStream()
throws IOException
- Description copied from class:
DelegatingPayload
- Creates a new InputStream object of the payload.
- Specified by:
openStream in interface Payload- Overrides:
openStream in class DelegatingPayload
- Throws:
IOException
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.