private boolean associateWithThread(ByteBuffer buffer) { final Thread currentThread = Thread.currentThread(); if (currentThread instanceof WorkerThread) { ((WorkerThread) currentThread).setOutputBB(buffer); return true; } return false; }
public void setSecuredOutputByteBuffer(ByteBuffer securedOutputByteBuffer) { workerThread().setOutputBB(securedOutputByteBuffer); }
public void setSecuredOutputByteBuffer(ByteBuffer securedOutputByteBuffer) { workerThread().setOutputBB(securedOutputByteBuffer); }
workerThread.setOutputBB(outputBB); workerThread.setByteBuffer(byteBuffer);
workerThread.setOutputBB(outputBB); workerThread.setByteBuffer(byteBuffer);
workerThread.setOutputBB(outputBB); workerThread.setByteBuffer(byteBuffer);
private static void swapEncryptOutBuffer(final WorkerThread workerThread, final SSLAsyncOutputBuffer outputBuffer, final SSLEngine engine) { ByteBuffer tmp = allocate(engine); outputBuffer.setOutputBB(workerThread.getOutputBB()); workerThread.setOutputBB(tmp); outputBuffer.setSSLEngine(engine); }
if (preProcessor == null) { preProcessor = new SSLWritePreProcessor(sslEngine, workerThread.getOutputBB()); workerThread.setOutputBB(null); attributes.setAttribute(SSL_WRITE_PREPROCESSOR, preProcessor);
SSLUtils.unwrapAll(byteBuffer, inputBB, sslEngine); workerThread.setInputBB(inputBB); workerThread.setOutputBB(outputBB); workerThread.setByteBuffer(byteBuffer);
workerThread.setSSLEngine(sslEngine); workerThread.setInputBB(inputBB); workerThread.setOutputBB(outputBB);