Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
org.forgerock.openig.fapi.dcr.common.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
Dynamic Client Registration error codes, as specified by spec: OAuth 2.0 Dynamic Client Registration Protocol.
  • Enum Constant Details

    • INVALID_REDIRECT_URI

      public static final ErrorCode INVALID_REDIRECT_URI
      The value of one or more redirection URIs is invalid.
    • INVALID_CLIENT_METADATA

      public static final ErrorCode INVALID_CLIENT_METADATA
      The value of one of the client metadata fields is invalid and the server has rejected this request.
    • INVALID_SOFTWARE_STATEMENT

      public static final ErrorCode INVALID_SOFTWARE_STATEMENT
      The software statement presented is invalid.
    • UNAPPROVED_SOFTWARE_STATEMENT

      public static final ErrorCode UNAPPROVED_SOFTWARE_STATEMENT
      The software statement presented is not approved for use by this authorization server.
    • UNKNOWN

      public static final ErrorCode UNKNOWN
      In case the error is undefined or unknown.
  • Method Details

    • values

      public static ErrorCode[] 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 ErrorCode 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
    • getCode

      public String getCode()
      Returns the error code.
      Returns:
      the error code
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ErrorCode>