private SSLEngineResult unwrap0() throws SSLException {
  SSLEngineResult res;
  do {
    res=sslEngine.unwrap(inNetBuf,appBuf);
    if (log.isDebugEnabled())     log.debug("Unwrapped raw data [status=" + res.getStatus() + ", handshakeStatus="+ res.getHandshakeStatus()+ ']');
    if (res.getStatus() == Status.BUFFER_OVERFLOW)     appBuf=expandBuffer(appBuf,appBuf.capacity() * 2);
  }
 while ((res.getStatus() == OK || res.getStatus() == Status.BUFFER_OVERFLOW) && (handshakeFinished && res.getHandshakeStatus() == NOT_HANDSHAKING || res.getHandshakeStatus() == NEED_UNWRAP));
  return res;
}

private SSLEngineResult unwrap0 ( ) throws SSLException { SSLEngineResult res ; do { res = sslEngine . unwrap ( inNetBuf , appBuf ) ; if ( log . isDebugEnabled ( ) ) log . debug ( "Unwrapped raw data [status=" + res . getStatus ( ) + ", handshakeStatus=" + res . getHandshakeStatus ( ) + ']' ) ; if ( res . getStatus ( ) == Status . BUFFER_OVERFLOW ) appBuf = expandBuffer ( appBuf , appBuf . capacity ( ) * 2 ) ; } while ( ( res . getStatus ( ) == OK || res . getStatus ( ) == Status . BUFFER_OVERFLOW ) && ( handshakeFinished && res . getHandshakeStatus ( ) == NOT_HANDSHAKING || res . getHandshakeStatus ( ) == NEED_UNWRAP ) ) ; return res ; }
performs raw unwrap from network read buffer .
