XMPP::AuthMechanism
Inherits Enum / Comparable / Value / Object
Constants
SCRAM_SHA_512_PLUS = 0
SCRAM with channel binding (preferred)
SCRAM_SHA_256_PLUS = 1
SCRAM_SHA_1_PLUS = 2
SCRAM_SHA_512 = 3
SCRAM without channel binding
SCRAM_SHA_256 = 4
SCRAM_SHA_1 = 5
DIGEST_MD5 = 6
PLAIN = 7
ANONYMOUS = 8
Instance methods
requires_verified_tls?
PLAIN exposes a reusable password to the authenticated peer and must therefore only be used over a verified TLS connection.
supported_by_sasl2?
DIGEST-MD5 uses a challenge flow that is currently implemented only for classic SASL. The other compatibility mechanisms can use SASL2 directly.
to_s
Returns a String representation of this enum member.
In the case of regular enums, this is just the name of the member.
In the case of flag enums, it's the names joined by vertical bars, or "None",
if the value is zero.
If an enum's value doesn't match a member's value, the raw value is returned as a string.
Color::Red.to_s # => "Red"
IOMode::None.to_s # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"
Color.new(10).to_s # => "10"