public abstract class BaseCipherPayload extends DelegatingPayload
| Constructor and Description |
|---|
BaseCipherPayload(Payload delegate,
Key key) |
| Modifier and Type | Method and Description |
|---|---|
abstract Cipher |
initializeCipher(Key key) |
CipherInputStream |
openStream()
Creates a new InputStream object of the payload.
|
void |
writeTo(OutputStream outstream)
Writes the payload content to the output stream.
|
close, equals, getContentMetadata, getDelegate, getInput, getRawContent, hashCode, isRepeatable, release, setContentMetadatapublic CipherInputStream openStream() throws IOException
DelegatingPayloadopenStream in interface PayloadopenStream in class DelegatingPayloadIOExceptionpublic void writeTo(OutputStream outstream) throws IOException
DelegatingPayloadwriteTo in interface WriteTowriteTo in class DelegatingPayloadIOExceptionCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.