private SSLEngineResult.HandshakeStatus doTasks() {

        Runnable runnable;

        /*
           * We could run this in a separate thread, but do in the current for now.
           */
        while ((runnable = tlsEngine.getDelegatedTask()) != null) {
            runnable.run();
        }
        return tlsEngine.getHandshakeStatus();
    }
Returns the current status for this TLSHandler.

@return the current TLSStatus
xmppserver/src/main/java/org/jivesoftware/openfire/net/TLSWrapper.java