enum
XMPP::AuthMechanism
Defined in:
xmpp/auth.crEnum Members
-
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 Method Summary
-
#anonymous?
Returns
trueif this enum value equalsANONYMOUS -
#base_mechanism : String
Get the base mechanism without -PLUS suffix
-
#digest_md5?
Returns
trueif this enum value equalsDIGEST_MD5 -
#plain?
Returns
trueif this enum value equalsPLAIN -
#requires_verified_tls? : Bool
PLAIN exposes a reusable password to the authenticated peer and must therefore only be used over a verified TLS connection.
-
#scram_sha_1?
Returns
trueif this enum value equalsSCRAM_SHA_1 -
#scram_sha_1_plus?
Returns
trueif this enum value equalsSCRAM_SHA_1_PLUS -
#scram_sha_256?
Returns
trueif this enum value equalsSCRAM_SHA_256 -
#scram_sha_256_plus?
Returns
trueif this enum value equalsSCRAM_SHA_256_PLUS -
#scram_sha_512?
Returns
trueif this enum value equalsSCRAM_SHA_512 -
#scram_sha_512_plus?
Returns
trueif this enum value equalsSCRAM_SHA_512_PLUS -
#supported_by_sasl2? : Bool
DIGEST-MD5 uses a challenge flow that is currently implemented only for classic SASL.
-
#to_s
Returns a
Stringrepresentation of this enum member. -
#uses_channel_binding? : Bool
Check if this mechanism uses channel binding
Instance Method Detail
PLAIN exposes a reusable password to the authenticated peer and must therefore only be used over a verified TLS connection.
DIGEST-MD5 uses a challenge flow that is currently implemented only for classic SASL. The other compatibility mechanisms can use SASL2 directly.
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"