org.restlet.ext.oauth
Enum OAuthError
java.lang.Object
java.lang.Enum<OAuthError>
org.restlet.ext.oauth.OAuthError
- All Implemented Interfaces:
- Serializable, Comparable<OAuthError>
public enum OAuthError
- extends Enum<OAuthError>
Utility class for formating OAuth errors
- Author:
- Shotaro Uchida , Kristoffer Gronowski
- See Also:
- The OAuth 2.0
Authorization Framework,
Bearer Token Usage
Method Summary |
static OAuthError |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OAuthError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
access_denied
public static final OAuthError access_denied
invalid_client
public static final OAuthError invalid_client
invalid_grant
public static final OAuthError invalid_grant
invalid_request
public static final OAuthError invalid_request
invalid_scope
public static final OAuthError invalid_scope
unauthorized_client
public static final OAuthError unauthorized_client
unsupported_grant_type
public static final OAuthError unsupported_grant_type
unsupported_response_type
public static final OAuthError unsupported_response_type
server_error
public static final OAuthError server_error
invalid_token
public static final OAuthError invalid_token
insufficient_scope
public static final OAuthError insufficient_scope
values
public static OAuthError[] 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 (OAuthError c : OAuthError.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OAuthError 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 name
NullPointerException
- if the argument is null
Copyright © 2005-2014 Restlet.