private void emitPlainData(SSLEngineResult result) { if (result.bytesProduced() > 0) { ByteBuffer internalPlainBuffer = _buffers.get(BufferType.IN_PLAIN); _sslListener.onPlainData(makeExternalBuffer(internalPlainBuffer)); } }
private void emitWrappedData(SSLEngineResult result) { if (result.bytesProduced() > 0) { ByteBuffer internalCipherBuffer = _buffers.get(BufferType.OUT_CIPHER); _sslListener.onWrappedData(makeExternalBuffer(internalCipherBuffer)); } }