Enum Class StandardErrorCode

java.lang.Object
java.lang.Enum<StandardErrorCode>
swiss.trustbroker.common.exception.StandardErrorCode
All Implemented Interfaces:
Serializable, Comparable<StandardErrorCode>, Constable, ErrorCode

public enum StandardErrorCode extends Enum<StandardErrorCode> implements ErrorCode
  • Enum Constant Details

    • REQUEST_DENIED

      public static final StandardErrorCode REQUEST_DENIED
    • REQUEST_REJECTED

      public static final StandardErrorCode REQUEST_REJECTED
    • UNKNOWN_PRINCIPAL

      public static final StandardErrorCode UNKNOWN_PRINCIPAL
    • UNKNOWN_USER

      public static final StandardErrorCode UNKNOWN_USER
    • STATE_NOT_FOUND

      public static final StandardErrorCode STATE_NOT_FOUND
      Authentication or SSO session expired.
      Since:
      1.9.0
    • NO_AUTHN_CONTEXT

      public static final StandardErrorCode NO_AUTHN_CONTEXT
      RP/CP QoA requirement not met by CP response.
      Since:
      1.11.0
    • SIGNATURE_NOT_OK

      public static final StandardErrorCode SIGNATURE_NOT_OK
      Signature validation failed.
      Since:
      1.13.0
  • Method Details

    • values

      public static StandardErrorCode[] 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 StandardErrorCode 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
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface ErrorCode
      Returns:
      label for the error code