enum XMPP::AuthMechanism

Defined in:

xmpp/auth.cr

Enum 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

Instance Method Detail

def anonymous? #

Returns true if this enum value equals ANONYMOUS


[View source]
def base_mechanism : String #

Get the base mechanism without -PLUS suffix


[View source]
def digest_md5? #

Returns true if this enum value equals DIGEST_MD5


[View source]
def plain? #

Returns true if this enum value equals PLAIN


[View source]
def scram_sha_1? #

Returns true if this enum value equals SCRAM_SHA_1


[View source]
def scram_sha_1_plus? #

Returns true if this enum value equals SCRAM_SHA_1_PLUS


[View source]
def scram_sha_256? #

Returns true if this enum value equals SCRAM_SHA_256


[View source]
def scram_sha_256_plus? #

Returns true if this enum value equals SCRAM_SHA_256_PLUS


[View source]
def scram_sha_512? #

Returns true if this enum value equals SCRAM_SHA_512


[View source]
def scram_sha_512_plus? #

Returns true if this enum value equals SCRAM_SHA_512_PLUS


[View source]
def to_s #
Description copied from struct Enum

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"

[View source]
def uses_channel_binding? : Bool #

Check if this mechanism uses channel binding


[View source]