@Deprecated public interface BufferHandler
readData, writeData
- application-side data - decrypted, handled by handleDecryptedData| Modifier and Type | Method and Description |
|---|---|
void |
handleDecryptedData(ByteBuffer input,
ByteBuffer output)
Deprecated.
Accept decrypted input data, previous collected by an invocation of
readData. |
int |
readData(ByteBuffer target)
Deprecated.
Read encrypted data from an input into the supplied buffer.
|
int |
writeData(ByteBuffer encrypted)
Deprecated.
Write encrypted data to an output from the supplied buffer.
|
int readData(ByteBuffer target) throws IOException
target - the target buffer for encrypted dataIOException - if an exception occursvoid handleDecryptedData(ByteBuffer input, ByteBuffer output)
readData.
Any plain-text output should be written to the output buffer for encryption.input - a buffer containing decrypted input dataoutput - a buffer that can be used for writing plain-text outputint writeData(ByteBuffer encrypted) throws IOException
encrypted - the buffer containing encrypted dataIOException - if an exception occursCopyright © 2023. All rights reserved.