SSLEngineResult result = _sslEngine.wrap(_clearOutputHolder.prepareToRead(), sslWrapDst);
logEngineClientModeAndResult(result, "output");
_clearOutputHolder.prepareToWrite();
Status sslResultStatus = result.getStatus();
if(sslResultStatus == SSLEngineResult.Status.BUFFER_OVERFLOW)
{
throw new IllegalStateException("Insufficient space to perform wrap into encoded output buffer that has " + sslWrapDst.remaining() + " remaining bytes. wrappingIntoEncodedOutputHolder=" + wrappingIntoEncodedOutputHolder);
}
else if(sslResultStatus != SSLEngineResult.Status.OK)