Enum Class OAuth2ErrorResponse.ErrorEnum
java.lang.Object
java.lang.Enum<OAuth2ErrorResponse.ErrorEnum>
co.ankatech.keymanagement.client.auth.model.OAuth2ErrorResponse.ErrorEnum
- All Implemented Interfaces:
Serializable,Comparable<OAuth2ErrorResponse.ErrorEnum>,Constable
- Enclosing class:
- OAuth2ErrorResponse
OAuth 2.0 error code per RFC 6749 Section 5.2. Standard values: - invalid_request: Missing or malformed parameter - invalid_client: Client authentication failed - invalid_grant: Invalid credentials or expired refresh token - unsupported_grant_type: Grant type not recognized - invalid_scope: Requested scope invalid or exceeds granted - insufficient_authorization: A tenant switch needs further authentication (HTTP 403); the answer carries an auth_session to continue with at the authorization challenge endpoint
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetValue()toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Returns the enum constant of this class with the specified name.static OAuth2ErrorResponse.ErrorEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
INVALID_REQUEST
-
INVALID_CLIENT
-
INVALID_GRANT
-
UNSUPPORTED_GRANT_TYPE
-
INVALID_SCOPE
-
INSUFFICIENT_AUTHORIZATION
-
UNKNOWN_DEFAULT_OPEN_API
-
-
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
-
getValue
-
toString
- Overrides:
toStringin classEnum<OAuth2ErrorResponse.ErrorEnum>
-
fromValue
-
validateJsonElement
- Throws:
IOException
-