enum

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

anonymous?

Returns true if this enum value equals ANONYMOUS

Source
base_mechanism

Get the base mechanism without -PLUS suffix

Source
digest_md5?

Returns true if this enum value equals DIGEST_MD5

Source
plain?

Returns true if this enum value equals PLAIN

Source
requires_verified_tls?

PLAIN exposes a reusable password to the authenticated peer and must therefore only be used over a verified TLS connection.

Source
scram_sha_1?

Returns true if this enum value equals SCRAM_SHA_1

Source
scram_sha_1_plus?

Returns true if this enum value equals SCRAM_SHA_1_PLUS

Source
scram_sha_256?

Returns true if this enum value equals SCRAM_SHA_256

Source
scram_sha_256_plus?

Returns true if this enum value equals SCRAM_SHA_256_PLUS

Source
scram_sha_512?

Returns true if this enum value equals SCRAM_SHA_512

Source
scram_sha_512_plus?

Returns true if this enum value equals SCRAM_SHA_512_PLUS

Source
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.

Source
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"
Source
uses_channel_binding?

Check if this mechanism uses channel binding

Source