Enum SaslOutcome
- All Implemented Interfaces:
Serializable
,Comparable<SaslOutcome>
Represents the outcome of a SASL exchange
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract SaslCode
saslCode()
static SaslOutcome
valueOf
(byte outcome) Return a matching SASL Outcome from the given byte value.static SaslOutcome
Returns the enum constant of this type with the specified name.static SaslOutcome[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SASL_OK
authentication succeeded -
SASL_AUTH
failed due to bad credentials -
SASL_SYS
failed due to a system error -
SASL_PERM
failed due to unrecoverable error -
SASL_TEMP
failed due to transient error
-
-
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
-
saslCode
- Returns:
- the low level
SaslCode
that defines the outcome of the SASL exchange.
-
valueOf
Return a matching SASL Outcome from the given byte value.- Parameters:
outcome
- The byte value that is to be mapped to a SASL Outcome.- Returns:
- the
SaslOutcome
that matches the given value. - Throws:
IllegalArgumentException
- if the given outcome value is unknown.
-