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, setContentMetadata
public CipherInputStream openStream() throws IOException
DelegatingPayload
openStream
in interface Payload
openStream
in class DelegatingPayload
IOException
public void writeTo(OutputStream outstream) throws IOException
DelegatingPayload
writeTo
in interface WriteTo
writeTo
in class DelegatingPayload
IOException
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.