Enum 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
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getErrorCode

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

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

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