private SSLEngineResult.HandshakeStatus doTasks(){
  Runnable runnable;
  while ((runnable=sslEngine.getDelegatedTask()) != null) {
    runnable.run();
  }
  return sslEngine.getHandshakeStatus();
}

private SSLEngineResult . HandshakeStatus doTasks ( ) { Runnable runnable ; while ( ( runnable = sslEngine . getDelegatedTask ( ) ) != null ) { runnable . run ( ) ; } return sslEngine . getHandshakeStatus ( ) ; }
do all the outstanding handshake tasks in the current thread .
