Enum Class AuthenticationInterceptor.State
java.lang.Object
java.lang.Enum<AuthenticationInterceptor.State>
io.deephaven.web.client.api.barrage.stream.AuthenticationInterceptor.State
- All Implemented Interfaces:
Serializable,Comparable<AuthenticationInterceptor.State>,java.lang.constant.Constable
- Enclosing class:
AuthenticationInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAt least one call to the server has succeeded, and an auth token returned.The provided "headerToSet" creds have been consumed, and a call is ongoing.Haven't tried to authenticate, or failed last call due to auth reasons, so new auth attempt is required to continue. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AuthenticationInterceptor.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNAUTHENTICATED
Haven't tried to authenticate, or failed last call due to auth reasons, so new auth attempt is required to continue. "lastHeaderValue" is null, and "pending" is empty. "headerToSet" may be non-null, and will be consumed on the next call. -
PENDING
The provided "headerToSet" creds have been consumed, and a call is ongoing. Other calls made while this call is pending are queued until it is complete. "lastHeaderValue" is null. -
AUTHENTICATED
At least one call to the server has succeeded, and an auth token returned. "headerToSet" is now null, and "lastHeaderValue" is non-null. "pending" is empty.
-
-
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
-