Enum SaslMechanisms
- All Implemented Interfaces:
Serializable,Comparable<SaslMechanisms>
Enumeration of all SASL Mechanisms supported by the client, order should be from most secure
to least secure.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract MechanismCreates the object that implements the SASL Mechanism represented by this enumeration.abstract SymbolgetName()static booleanGiven a mechanism name, validate that it is one of the mechanisms this client supports.static SaslMechanismsReturns the enum constant of this type with the specified name.static SaslMechanismsReturns the matchingSaslMechanismsenumeration value for the givenSymbolkey.static SaslMechanisms[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXTERNAL
-
SCRAM_SHA_512
-
SCRAM_SHA_256
-
SCRAM_SHA_1
-
CRAM_MD5
-
PLAIN
-
XOAUTH2
-
ANONYMOUS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
createMechanism
Creates the object that implements the SASL Mechanism represented by this enumeration.- Returns:
- a new SASL
Mechanismtype that will be used for authentication.
-
valueOf
Returns the matchingSaslMechanismsenumeration value for the givenSymbolkey.- Parameters:
mechanism- The symbolic mechanism name to lookup.- Returns:
- the matching
SaslMechanismsfor the given Symbol value.
-
validate
Given a mechanism name, validate that it is one of the mechanisms this client supports.- Parameters:
mechanism- The mechanism name to validate- Returns:
- true if the name matches a supported SASL Mechanism
-