/** * Configure the <code>SSLProcessorTask</code>. */ @Override protected void configureProcessorTask(){ super.configureProcessorTask(); SSLSupport sslSupport = sslImplementation.getSSLSupport(sslEngine); ((SSLProcessorTask)processorTask).setSSLSupport(sslSupport); ((SSLProcessorTask)processorTask).setSslReadTask(this); SecureOuputBuffer secureOutputBuffer = ((SSLProcessorTask) processorTask).getSecureOutputBuffer(); if (secureOutputBuffer == null) { processorTask.initialize(); secureOutputBuffer = ((SSLProcessorTask) processorTask).getSecureOutputBuffer(); } secureOutputBuffer.setSSLEngine(sslEngine); secureOutputBuffer.setOutputBB(outputBB); }
/** * Return the <code>ProcessorTask</code> to the pool. */ @Override public void detachProcessor(){ if ( processorTask != null ){ ((SSLProcessorTask)processorTask).setSSLSupport(null); ((SSLProcessorTask)processorTask).setSslReadTask(null); final SecureOuputBuffer secureOutputBuffer = ((SSLProcessorTask) processorTask).getSecureOutputBuffer(); secureOutputBuffer.setSSLEngine(null); secureOutputBuffer.setOutputBB(null); } super.detachProcessor(); }