Package com.ongres.scram.common.message
Enum ServerFinalMessage.Error
- java.lang.Object
-
- java.lang.Enum<ServerFinalMessage.Error>
-
- com.ongres.scram.common.message.ServerFinalMessage.Error
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServerFinalMessage.Error>
- Enclosing class:
- ServerFinalMessage
public static enum ServerFinalMessage.Error extends java.lang.Enum<ServerFinalMessage.Error>
Possible error messages sent on a server-final-message.
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,ServerFinalMessage.Error>
BY_NAME_MAPPING
private java.lang.String
errorMessage
-
Constructor Summary
Constructors Modifier Constructor Description private
Error(java.lang.String errorMessage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerFinalMessage.Error
getByErrorMessage(java.lang.String errorMessage)
java.lang.String
getErrorMessage()
static ServerFinalMessage.Error
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServerFinalMessage.Error[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.private static java.util.Map<java.lang.String,ServerFinalMessage.Error>
valuesAsMap()
-
-
-
Enum Constant Detail
-
INVALID_ENCODING
public static final ServerFinalMessage.Error INVALID_ENCODING
-
EXTENSIONS_NOT_SUPPORTED
public static final ServerFinalMessage.Error EXTENSIONS_NOT_SUPPORTED
-
INVALID_PROOF
public static final ServerFinalMessage.Error INVALID_PROOF
-
CHANNEL_BINDINGS_DONT_MATCH
public static final ServerFinalMessage.Error CHANNEL_BINDINGS_DONT_MATCH
-
SERVER_DOES_SUPPORT_CHANNEL_BINDING
public static final ServerFinalMessage.Error SERVER_DOES_SUPPORT_CHANNEL_BINDING
-
CHANNEL_BINDING_NOT_SUPPORTED
public static final ServerFinalMessage.Error CHANNEL_BINDING_NOT_SUPPORTED
-
UNSUPPORTED_CHANNEL_BINDING_TYPE
public static final ServerFinalMessage.Error UNSUPPORTED_CHANNEL_BINDING_TYPE
-
UNKNOWN_USER
public static final ServerFinalMessage.Error UNKNOWN_USER
-
INVALID_USERNAME_ENCODING
public static final ServerFinalMessage.Error INVALID_USERNAME_ENCODING
-
NO_RESOURCES
public static final ServerFinalMessage.Error NO_RESOURCES
-
OTHER_ERROR
public static final ServerFinalMessage.Error OTHER_ERROR
-
-
Field Detail
-
BY_NAME_MAPPING
private static final java.util.Map<java.lang.String,ServerFinalMessage.Error> BY_NAME_MAPPING
-
errorMessage
private final java.lang.String errorMessage
-
-
Method Detail
-
values
public static ServerFinalMessage.Error[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerFinalMessage.Error c : ServerFinalMessage.Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerFinalMessage.Error valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getByErrorMessage
public static ServerFinalMessage.Error getByErrorMessage(java.lang.String errorMessage) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
valuesAsMap
private static java.util.Map<java.lang.String,ServerFinalMessage.Error> valuesAsMap()
-
-