public enum OAuthProviderError extends Enum<OAuthProviderError>
| Enum Constant and Description |
|---|
INVALID_CLIENT
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
|
INVALID_GRANT
The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
|
INVALID_REQUEST
The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.
|
INVALID_SCOPE
The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.
|
UNAUTHORIZED_CLIENT
The authenticated client is not authorized to use this authorization grant type.
|
UNSUPPORTED_GRANT_TYPE
The authorization grant type is not supported by the authorization server.
|
| Modifier and Type | Method and Description |
|---|---|
static OAuthProviderError |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static OAuthProviderError |
fromString(String toConvert)
Returns the enum member associated with the given string value.
|
String |
toString()
Get string representation of this enum.
|
static List<String> |
toValue(List<OAuthProviderError> toConvert)
Convert list of OAuthProviderError values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static OAuthProviderError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuthProviderError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuthProviderError INVALID_REQUEST
public static final OAuthProviderError INVALID_CLIENT
public static final OAuthProviderError INVALID_GRANT
public static final OAuthProviderError UNAUTHORIZED_CLIENT
public static final OAuthProviderError UNSUPPORTED_GRANT_TYPE
public static final OAuthProviderError INVALID_SCOPE
public static OAuthProviderError[] values()
for (OAuthProviderError c : OAuthProviderError.values()) System.out.println(c);
public static OAuthProviderError 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 static OAuthProviderError constructFromString(String toConvert) throws IOException
toConvert - String value to get enum member.IOException - when provided value is not mapped to any enum member.public static OAuthProviderError fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
toString in class Enum<OAuthProviderError>public static List<String> toValue(List<OAuthProviderError> toConvert)
toConvert - The list of OAuthProviderError values to convert.Copyright © 2025. All rights reserved.