Package com.github.scribejava.core.model
Enum OAuth2AccessTokenErrorResponse.ErrorCode
- java.lang.Object
-
- java.lang.Enum<OAuth2AccessTokenErrorResponse.ErrorCode>
-
- com.github.scribejava.core.model.OAuth2AccessTokenErrorResponse.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OAuth2AccessTokenErrorResponse.ErrorCode>
- Enclosing class:
- OAuth2AccessTokenErrorResponse
public static enum OAuth2AccessTokenErrorResponse.ErrorCode extends java.lang.Enum<OAuth2AccessTokenErrorResponse.ErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description invalid_clientinvalid_grantinvalid_requestinvalid_scopeunauthorized_clientunsupported_grant_typeunsupported_token_type
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OAuth2AccessTokenErrorResponse.ErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OAuth2AccessTokenErrorResponse.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
invalid_request
public static final OAuth2AccessTokenErrorResponse.ErrorCode invalid_request
-
invalid_client
public static final OAuth2AccessTokenErrorResponse.ErrorCode invalid_client
-
invalid_grant
public static final OAuth2AccessTokenErrorResponse.ErrorCode invalid_grant
-
unauthorized_client
public static final OAuth2AccessTokenErrorResponse.ErrorCode unauthorized_client
-
unsupported_grant_type
public static final OAuth2AccessTokenErrorResponse.ErrorCode unsupported_grant_type
-
invalid_scope
public static final OAuth2AccessTokenErrorResponse.ErrorCode invalid_scope
-
unsupported_token_type
public static final OAuth2AccessTokenErrorResponse.ErrorCode unsupported_token_type
- See Also:
- RFC 7009, 2.2.1. Error Response
-
-
Method Detail
-
values
public static OAuth2AccessTokenErrorResponse.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OAuth2AccessTokenErrorResponse.ErrorCode c : OAuth2AccessTokenErrorResponse.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OAuth2AccessTokenErrorResponse.ErrorCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-