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:
- Kristoffer Gronowski
- See Also:
- Authorization
Error Responses,
Access
Error Responses,
WWW-Authenticate
Error Responses
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
expired_token
public static final OAuthError expired_token
insufficient_scope
public static final OAuthError insufficient_scope
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
invalid_token
public static final OAuthError invalid_token
redirect_uri_mismatch
public static final OAuthError redirect_uri_mismatch
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
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-2013 Restlet.