Enum Class Sasl2Negotiation.State
- All Implemented Interfaces:
Serializable,Comparable<Sasl2Negotiation.State>,Constable
- Enclosing class:
- Sasl2Negotiation
The point that a negotiation has reached. Used to reject protocol elements that arrive out of order.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe SASL exchange has succeeded.A<continue/>element has been sent; the peer is expected to select a task with<next/>.A<task-data/>element has been sent; the peer is expected to respond in kind.The negotiation has ended and has been torn down.The<authenticate/>element has been seen; the SASL exchange is still in progress. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sasl2Negotiation.StateReturns the enum constant of this class with the specified name.static Sasl2Negotiation.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRE_AUTHENTICATION
The<authenticate/>element has been seen; the SASL exchange is still in progress. -
AUTHENTICATED
The SASL exchange has succeeded. No task has been offered (yet). -
AWAITING_NEXT
A<continue/>element has been sent; the peer is expected to select a task with<next/>. -
AWAITING_TASK_DATA
A<task-data/>element has been sent; the peer is expected to respond in kind. -
FINISHED
The negotiation has ended and has been torn down. Written only bySasl2TaskManager.endNegotiation(LocalSession, boolean), whose compare-and-swap on this value makes teardown idempotent when a connection close races with inbound processing. No other code may set it.
-
-
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
-