public String toString(int length)
    {
        if (length > 0) {
            return "[encryption=" + encryptionPolicy.toString().substring(0, length) + ", certificate=" + certificateState.toString().substring(0, length) + ", strictCertValidation=" + strictCertificateValidation + ", dialback=" + (dialbackSupported ? "SUPPORTED" : "DISABLED").substring(0, length) + "]";
        } else {
            return "[encryption=" + encryptionPolicy.toString() + ", certificate=" + certificateState.toString() + ", strictCertValidation=" + strictCertificateValidation + ", dialback=" + (dialbackSupported ? "SUPPORTED" : "DISABLED") + "]";
        }
    }
//         * Defines if this entity will attempt/require/ignore to validate the peer's certificate
//
xmppserver/src/test/java/org/jivesoftware/openfire/session/ServerSettings.java