public void set(final ConnectionState state, final String rationale)
    {
        if (connectionState != null && connectionState != state) {
            throw new IllegalStateException("Cannot set state " + state + ". State already is " + connectionState);
        }
        connectionState = state;
        rationales.add(rationale);
    }
Connection that is encrypted, Initiating Entity is authenticated by the Receiving Entity using the SASL EXTERNAL mechanism.
xmppserver/src/test/java/org/jivesoftware/openfire/session/ExpectedOutcome.java