public enum OAuthExceptionCode extends Enum<OAuthExceptionCode>
| Enum Constant and Description |
|---|
ACCESS_TOKEN_ERROR
Error when we have invalid or revoked access token
|
DUPLICATE_OAUTH_PROVIDER_USERNAME
This error could happen during saving of user into GateIn identity database.
|
FACEBOOK_ERROR
Some error during Facebook processing
|
GOOGLE_ERROR
Some error during Google processing
|
INVALID_STATE
Error when state parameter from request parameter, which is sent from OAuth provider, is not equals to previously sent state
|
IO_ERROR
Generic IO error (for example network error)
|
LINKEDIN_ERROR
Some error during LinkedIn processing
|
PERSISTENCE_ERROR
Error during DB operation (For example get/set/remove access token from DB)
|
TOKEN_REVOCATION_FAILED
Error when revoking of accessToken of any provider failed
|
TWITTER_ERROR
Some error during Twitter processing
|
UNKNOWN_ERROR
Unspecified GateIn+OAuth error
|
USER_DENIED_SCOPE
Error when OAuth2 flow failed because user denied to permit privileges (scope) for OAuth provider
|
| Modifier and Type | Method and Description |
|---|---|
static OAuthExceptionCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuthExceptionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuthExceptionCode UNKNOWN_ERROR
public static final OAuthExceptionCode DUPLICATE_OAUTH_PROVIDER_USERNAME
public static final OAuthExceptionCode TWITTER_ERROR
public static final OAuthExceptionCode FACEBOOK_ERROR
public static final OAuthExceptionCode GOOGLE_ERROR
public static final OAuthExceptionCode LINKEDIN_ERROR
public static final OAuthExceptionCode ACCESS_TOKEN_ERROR
public static final OAuthExceptionCode IO_ERROR
public static final OAuthExceptionCode INVALID_STATE
public static final OAuthExceptionCode TOKEN_REVOCATION_FAILED
public static final OAuthExceptionCode USER_DENIED_SCOPE
public static final OAuthExceptionCode PERSISTENCE_ERROR
public static OAuthExceptionCode[] values()
for (OAuthExceptionCode c : OAuthExceptionCode.values()) System.out.println(c);
public static OAuthExceptionCode 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 nullCopyright © 2017 JBoss by Red Hat. All Rights Reserved.