Enum Class AuthorizationErrorCode

java.lang.Object
java.lang.Enum<AuthorizationErrorCode>
io.micronaut.security.oauth2.endpoint.authorization.response.AuthorizationErrorCode
All Implemented Interfaces:
io.micronaut.security.errors.ErrorCode, Serializable, Comparable<AuthorizationErrorCode>, Constable

public enum AuthorizationErrorCode extends 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:
  • Enum Constant Details

  • Method Details

    • values

      public static AuthorizationErrorCode[] 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

      public static AuthorizationErrorCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getErrorCode

      public String getErrorCode()
      Specified by:
      getErrorCode in interface io.micronaut.security.errors.ErrorCode
    • getErrorCodeDescription

      public String getErrorCodeDescription()
      Specified by:
      getErrorCodeDescription in interface io.micronaut.security.errors.ErrorCode
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AuthorizationErrorCode>
      Returns:
      An errorCode code.