Package com.ongres.scram.common.message
Enum Class ServerFinalMessage.Error
- All Implemented Interfaces:
Serializable
,Comparable<ServerFinalMessage.Error>
,Constable
- Enclosing class:
- ServerFinalMessage
Possible error messages sent on a server-final-message.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String,
ServerFinalMessage.Error> private final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerFinalMessage.Error
getByErrorMessage
(String errorMessage) static ServerFinalMessage.Error
Returns the enum constant of this class with the specified name.static ServerFinalMessage.Error[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.private static Map<String,
ServerFinalMessage.Error>
-
Enum Constant Details
-
INVALID_ENCODING
-
EXTENSIONS_NOT_SUPPORTED
-
INVALID_PROOF
-
CHANNEL_BINDINGS_DONT_MATCH
-
SERVER_DOES_SUPPORT_CHANNEL_BINDING
-
CHANNEL_BINDING_NOT_SUPPORTED
-
UNSUPPORTED_CHANNEL_BINDING_TYPE
-
UNKNOWN_USER
-
INVALID_USERNAME_ENCODING
-
NO_RESOURCES
-
OTHER_ERROR
-
-
Field Details
-
BY_NAME_MAPPING
-
errorMessage
-
-
Constructor Details
-
Error
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getErrorMessage
-
getByErrorMessage
public static ServerFinalMessage.Error getByErrorMessage(String errorMessage) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
valuesAsMap
-