public static enum OAuthTokenStatus.ErrorCode extends Enum<OAuthTokenStatus.ErrorCode>
| Enum Constant and Description |
|---|
INSUFFICIENT_SCOPE
Indicates that the request requires higher privileges than provided by
the OAuth token.
|
INVALID_TOKEN
Indicates that the OAuth token is expired, revoked, malformed, or invalid
for other reasons.
|
OK
Indicates that the OAuth token is valid.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpStatusCode()
Get the HTTP status code associated with this ErrorCode.
|
static OAuthTokenStatus.ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuthTokenStatus.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuthTokenStatus.ErrorCode OK
public static final OAuthTokenStatus.ErrorCode INVALID_TOKEN
public static final OAuthTokenStatus.ErrorCode INSUFFICIENT_SCOPE
public static OAuthTokenStatus.ErrorCode[] values()
for (OAuthTokenStatus.ErrorCode c : OAuthTokenStatus.ErrorCode.values()) System.out.println(c);
public static OAuthTokenStatus.ErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getHttpStatusCode()
Copyright © 2011–2016 UnboundID. All rights reserved.