Package io.meeds.oauth.exception
Enum Class OAuthExceptionCode
- All Implemented Interfaces:
Serializable,Comparable<OAuthExceptionCode>,Constable
Enum with various exception codes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionError when we have invalid or revoked access tokenThis error could happen during saving of user into GateIn identity database.Some error during Facebook processingSome error during Google processingError when state parameter from request parameter, which is sent from OAuth provider, is not equals to previously sent stateGeneric IO error (for example network error)Some error during LinkedIn processingError during DB operation (For example get/set/remove access token from DB)Error when revoking of accessToken of any provider failedError when OAuth2 flow failed because jwt token validation failsSome error during Twitter processingUnspecified GateIn+OAuth errorError when OAuth2 flow failed because user denied to permit privileges (scope) for OAuth provider -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuthExceptionCodeReturns the enum constant of this class with the specified name.static OAuthExceptionCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN_ERROR
Unspecified GateIn+OAuth error -
DUPLICATE_OAUTH_PROVIDER_USERNAME
This error could happen during saving of user into GateIn identity database. It happens when there is an attempt to save user with facebookUsername (or googleUsername), but there is already an existing user with same facebookUsername. For example: We want to save user 'john' with facebookUsername 'john.doyle' but we already have user 'johny2' with same facebookUsername 'john.doyle' -
TWITTER_ERROR
Some error during Twitter processing -
FACEBOOK_ERROR
Some error during Facebook processing -
GOOGLE_ERROR
Some error during Google processing -
LINKEDIN_ERROR
Some error during LinkedIn processing -
ACCESS_TOKEN_ERROR
Error when we have invalid or revoked access token -
IO_ERROR
Generic IO error (for example network error) -
INVALID_STATE
Error when state parameter from request parameter, which is sent from OAuth provider, is not equals to previously sent state -
TOKEN_REVOCATION_FAILED
Error when revoking of accessToken of any provider failed -
USER_DENIED_SCOPE
Error when OAuth2 flow failed because user denied to permit privileges (scope) for OAuth provider -
PERSISTENCE_ERROR
Error during DB operation (For example get/set/remove access token from DB) -
TOKEN_VALIDATION_ERROR
Error when OAuth2 flow failed because jwt token validation fails
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-