private void renegotiateIfNeeded(SSLEngineResult res) throws IgniteCheckedException, SSLException {
  if (res.getStatus() != CLOSED && res.getStatus() != BUFFER_UNDERFLOW && res.getHandshakeStatus() != NOT_HANDSHAKING) {
    handshakeStatus=res.getHandshakeStatus();
    if (log.isDebugEnabled())     log.debug("Renegotiation requested [status=" + res.getStatus() + ", handshakeStatus = "+ handshakeStatus+ ']');
    handshakeFinished=false;
    handshake();
  }
}

private void renegotiateIfNeeded ( SSLEngineResult res ) throws IgniteCheckedException , SSLException { if ( res . getStatus ( ) != CLOSED && res . getStatus ( ) != BUFFER_UNDERFLOW && res . getHandshakeStatus ( ) != NOT_HANDSHAKING ) { handshakeStatus = res . getHandshakeStatus ( ) ; if ( log . isDebugEnabled ( ) ) log . debug ( "Renegotiation requested [status=" + res . getStatus ( ) + ", handshakeStatus = " + handshakeStatus + ']' ) ; handshakeFinished = false ; handshake ( ) ; } }
check status and retry the negotiation process if needed .
