Package com.atlassian.oauth2.client.api
Enum Class ClientTokenMetadata.ClientTokenStatus
java.lang.Object
java.lang.Enum<ClientTokenMetadata.ClientTokenStatus>
com.atlassian.oauth2.client.api.ClientTokenMetadata.ClientTokenStatus
- All Implemented Interfaces:
Serializable,Comparable<ClientTokenMetadata.ClientTokenStatus>,Constable
- Enclosing interface:
- ClientTokenMetadata
public static enum ClientTokenMetadata.ClientTokenStatus
extends Enum<ClientTokenMetadata.ClientTokenStatus>
Information about the state of the token, based on its last usage.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates there was an error which occurred during last authorisation attempt.Indicates that this token hasn't been used yet.Indicates that the token is permanently unrecoverable and newClientTokenmust be obtained.Indicates that this token pair has been successfully used during last authorisation attempt. -
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
-
UNKNOWN
Indicates that this token hasn't been used yet. -
VALID
Indicates that this token pair has been successfully used during last authorisation attempt. -
RECOVERABLE
Indicates there was an error which occurred during last authorisation attempt. Therefresh tokenmay be used to try to fix this problem. Without successful authorisation attempt it will eventually transition intoUNRECOVERABLE. -
UNRECOVERABLE
Indicates that the token is permanently unrecoverable and newClientTokenmust be obtained. Therefresh tokencan't be used to fix this problem.
-
-
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
-