Enum OAuth2Error
- java.lang.Object
-
- java.lang.Enum<OAuth2Error>
-
- com.github.scribejava.core.oauth2.OAuth2Error
-
- All Implemented Interfaces:
Serializable
,Comparable<OAuth2Error>
public enum OAuth2Error extends Enum<OAuth2Error>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorString()
static OAuth2Error
parseFrom(String errorString)
static OAuth2Error
valueOf(String name)
Returns the enum constant of this type with the specified name.static OAuth2Error[]
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 OAuth2Error INVALID_REQUEST
-
UNAUTHORIZED_CLIENT
public static final OAuth2Error UNAUTHORIZED_CLIENT
-
ACCESS_DENIED
public static final OAuth2Error ACCESS_DENIED
-
UNSUPPORTED_RESPONSE_TYPE
public static final OAuth2Error UNSUPPORTED_RESPONSE_TYPE
-
INVALID_SCOPE
public static final OAuth2Error INVALID_SCOPE
-
SERVER_ERROR
public static final OAuth2Error SERVER_ERROR
-
TEMPORARILY_UNAVAILABLE
public static final OAuth2Error TEMPORARILY_UNAVAILABLE
-
INVALID_CLIENT
public static final OAuth2Error INVALID_CLIENT
- See Also:
- RFC 6749, 5.2 Error Response
-
INVALID_GRANT
public static final OAuth2Error INVALID_GRANT
- See Also:
- RFC 6749, 5.2 Error Response
-
UNSUPPORTED_GRANT_TYPE
public static final OAuth2Error UNSUPPORTED_GRANT_TYPE
- See Also:
- RFC 6749, 5.2 Error Response
-
INVALID_TOKEN
public static final OAuth2Error INVALID_TOKEN
-
INSUFFICIENT_SCOPE
public static final OAuth2Error INSUFFICIENT_SCOPE
-
UNSUPPORTED_TOKEN_TYPE
public static final OAuth2Error UNSUPPORTED_TOKEN_TYPE
-
-
Method Detail
-
values
public static OAuth2Error[] 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 (OAuth2Error c : OAuth2Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OAuth2Error valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
parseFrom
public static OAuth2Error parseFrom(String errorString)
-
getErrorString
public String getErrorString()
-
-