Enum AuthorizationErrorCode
- java.lang.Object
-
- java.lang.Enum<AuthorizationErrorCode>
-
- io.micronaut.security.oauth2.endpoint.authorization.response.AuthorizationErrorCode
-
- All Implemented Interfaces:
io.micronaut.security.errors.ErrorCode,java.io.Serializable,java.lang.Comparable<AuthorizationErrorCode>
public enum AuthorizationErrorCode extends java.lang.Enum<AuthorizationErrorCode> implements io.micronaut.security.errors.ErrorCode
Error codes for an Authentication Error Response message returned from the OP's Authorization Endpoint in response to the Authorization Request message sent by the RP.- Since:
- 2.0.0.
- See Also:
- Authentication Error Response
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorCode()java.lang.StringgetErrorCodeDescription()java.lang.StringtoString()static AuthorizationErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AuthorizationErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERACTION_REQUIRED
public static final AuthorizationErrorCode INTERACTION_REQUIRED
-
LOGIN_REQUIRED
public static final AuthorizationErrorCode LOGIN_REQUIRED
-
ACCOUNT_SELECTION_REQUIRED
public static final AuthorizationErrorCode ACCOUNT_SELECTION_REQUIRED
-
CONSENT_REQUIRED
public static final AuthorizationErrorCode CONSENT_REQUIRED
-
INVALID_REQUEST_URI
public static final AuthorizationErrorCode INVALID_REQUEST_URI
-
INVALID_REQUEST_OBJECT
public static final AuthorizationErrorCode INVALID_REQUEST_OBJECT
-
REQUEST_NOT_SUPPORTED
public static final AuthorizationErrorCode REQUEST_NOT_SUPPORTED
-
REQUEST_URI_NOT_SUPPORTED
public static final AuthorizationErrorCode REQUEST_URI_NOT_SUPPORTED
-
REGISTRATION_NOT_SUPPORTED
public static final AuthorizationErrorCode REGISTRATION_NOT_SUPPORTED
-
INVALID_REQUEST
public static final AuthorizationErrorCode INVALID_REQUEST
-
UNAUTHORIZED_CLIENT
public static final AuthorizationErrorCode UNAUTHORIZED_CLIENT
-
ACCESS_DENIED
public static final AuthorizationErrorCode ACCESS_DENIED
-
UNSUPPORTED_RESPONSE_TYPE
public static final AuthorizationErrorCode UNSUPPORTED_RESPONSE_TYPE
-
INVALID_SCOPE
public static final AuthorizationErrorCode INVALID_SCOPE
-
SERVER_ERROR
public static final AuthorizationErrorCode SERVER_ERROR
-
TEMPORARILY_UNAVAILABLE
public static final AuthorizationErrorCode TEMPORARILY_UNAVAILABLE
-
UNAUTHORIZED_SCOPE_ERROR
public static final AuthorizationErrorCode UNAUTHORIZED_SCOPE_ERROR
-
USER_CANCELLED_AUTHORIZE
public static final AuthorizationErrorCode USER_CANCELLED_AUTHORIZE
-
-
Method Detail
-
values
public static AuthorizationErrorCode[] 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 (AuthorizationErrorCode c : AuthorizationErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationErrorCode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getErrorCode
public java.lang.String getErrorCode()
- Specified by:
getErrorCodein interfaceio.micronaut.security.errors.ErrorCode
-
getErrorCodeDescription
public java.lang.String getErrorCodeDescription()
- Specified by:
getErrorCodeDescriptionin interfaceio.micronaut.security.errors.ErrorCode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<AuthorizationErrorCode>- Returns:
- An errorCode code.
-
-