Package com.ultikits.ultitools.utils
Enum Class DeviceAuthorizationClient.PollResult.Kind
java.lang.Object
java.lang.Enum<DeviceAuthorizationClient.PollResult.Kind>
com.ultikits.ultitools.utils.DeviceAuthorizationClient.PollResult.Kind
- All Implemented Interfaces:
Serializable,Comparable<DeviceAuthorizationClient.PollResult.Kind>,java.lang.constant.Constable
- Enclosing class:
DeviceAuthorizationClient.PollResult
static enum DeviceAuthorizationClient.PollResult.Kind
extends Enum<DeviceAuthorizationClient.PollResult.Kind>
RFC 8628 ยง3.5 outcomes, plus the two local ones.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionaccess_denied: the owner refused on the confirmation page.expired_token: the device code expired.A credential was issued.authorization_pending: poll again after the interval.invalid_requestor another error code: stop.slow_down: add 5 s to the interval, then poll again.A network error, 5xx, 429 or unreadable answer: poll again. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GRANTED
A credential was issued. -
PENDING
authorization_pending: poll again after the interval. -
SLOW_DOWN
slow_down: add 5 s to the interval, then poll again. -
EXPIRED
expired_token: the device code expired. -
DENIED
access_denied: the owner refused on the confirmation page. -
REJECTED
invalid_requestor another error code: stop. -
TRANSIENT
A network error, 5xx, 429 or unreadable answer: poll again.
-
-
Constructor Details
-
Kind
private Kind()
-
-
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
-