public boolean isEncrypted() {
        return context.getRequest().isSecure();
    }
Returns true if this connection is using HTTPS.

@return true if this connection is using HTTPS.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpConnection.java