Enum ServerFinalMessage.Error
- java.lang.Object
-
- java.lang.Enum<ServerFinalMessage.Error>
-
- com.impossibl.postgres.protocol.sasl.scram.message.ServerFinalMessage.Error
-
- All Implemented Interfaces:
Serializable
,Comparable<ServerFinalMessage.Error>
- Enclosing class:
- ServerFinalMessage
public static enum ServerFinalMessage.Error extends Enum<ServerFinalMessage.Error>
Possible error messages sent on a server-final-message.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerFinalMessage.Error
getByErrorMessage(String errorMessage)
String
getErrorMessage()
static ServerFinalMessage.Error
valueOf(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.
-
-
-
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
-
-
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(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getErrorMessage
public String getErrorMessage()
-
getByErrorMessage
public static ServerFinalMessage.Error getByErrorMessage(String errorMessage) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-