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, WriteTo
- Direct Known Subclasses:
- RSADecryptingPayload, RSAEncryptingPayload
public abstract class BaseCipherPayload
- extends DelegatingPayload
- Author:
- Adrian Cole
BaseCipherPayload
public BaseCipherPayload(Payload delegate,
Key key)
initializeCipher
public abstract Cipher initializeCipher(Key key)
getInput
public CipherInputStream getInput()
- Description copied from class:
DelegatingPayload
- Creates a new InputStream object of the payload.
- Specified by:
getInput
in interface com.google.common.io.InputSupplier<InputStream>
- Specified by:
getInput
in interface Payload
- Overrides:
getInput
in class DelegatingPayload
writeTo
public void writeTo(OutputStream outstream)
throws IOException
- Description copied from class:
DelegatingPayload
- Writes the payload content to the output stream.
- Specified by:
writeTo
in interface WriteTo
- Overrides:
writeTo
in class DelegatingPayload
- Throws:
IOException
Copyright © 2009-2012 jclouds. All Rights Reserved.