public abstract class BaseCipherPayload extends DelegatingPayload
Constructor and Description |
---|
BaseCipherPayload(Payload delegate,
Key key) |
Modifier and Type | Method and Description |
---|---|
CipherInputStream |
getInput()
Creates a new InputStream object of the payload.
|
abstract Cipher |
initializeCipher(Key key) |
void |
writeTo(OutputStream outstream)
Writes the payload content to the output stream.
|
close, equals, getContentMetadata, getDelegate, getRawContent, hashCode, isRepeatable, release, setContentMetadata
public CipherInputStream getInput()
DelegatingPayload
getInput
in interface com.google.common.io.InputSupplier<InputStream>
getInput
in interface Payload
getInput
in class DelegatingPayload
public void writeTo(OutputStream outstream) throws IOException
DelegatingPayload
writeTo
in interface WriteTo
writeTo
in class DelegatingPayload
IOException
Copyright © 2009-2013 jclouds. All Rights Reserved.