private Status unwrapHandshake() throws SSLException, IgniteCheckedException {
  inNetBuf.flip();
  SSLEngineResult res=unwrap0();
  handshakeStatus=res.getHandshakeStatus();
  checkStatus(res);
  if (handshakeStatus == FINISHED && res.getStatus() == Status.OK && inNetBuf.hasRemaining()) {
    res=unwrap0();
    handshakeStatus=res.getHandshakeStatus();
    inNetBuf.compact();
    renegotiateIfNeeded(res);
  }
 else   inNetBuf.compact();
  return res.getStatus();
}

private Status unwrapHandshake ( ) throws SSLException , IgniteCheckedException { inNetBuf . flip ( ) ; SSLEngineResult res = unwrap0 ( ) ; handshakeStatus = res . getHandshakeStatus ( ) ; checkStatus ( res ) ; if ( handshakeStatus == FINISHED && res . getStatus ( ) == Status . OK && inNetBuf . hasRemaining ( ) ) { res = unwrap0 ( ) ; handshakeStatus = res . getHandshakeStatus ( ) ; inNetBuf . compact ( ) ; renegotiateIfNeeded ( res ) ; } else inNetBuf . compact ( ) ; return res . getStatus ( ) ; }
unwraps handshake data and processes it .
