Enum Class ErrorType

java.lang.Object
java.lang.Enum<ErrorType>
org.keycloak.protocol.oid4vc.model.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ErrorType>, Constable

public enum ErrorType extends Enum<ErrorType>
Enum to handle potential errors in issuing credentials with the error types defined in OID4VCI
Author:
Stefan Wiedemann
  • Enum Constant Details

    • INVALID_CREDENTIAL_REQUEST

      public static final ErrorType INVALID_CREDENTIAL_REQUEST
    • INVALID_TOKEN

      public static final ErrorType INVALID_TOKEN
    • UNSUPPORTED_CREDENTIAL_TYPE

      public static final ErrorType UNSUPPORTED_CREDENTIAL_TYPE
    • UNSUPPORTED_CREDENTIAL_FORMAT

      public static final ErrorType UNSUPPORTED_CREDENTIAL_FORMAT
    • INVALID_PROOF

      public static final ErrorType INVALID_PROOF
    • INVALID_ENCRYPTION_PARAMETER

      public static final ErrorType INVALID_ENCRYPTION_PARAMETER
  • Method Details

    • values

      public static ErrorType[] 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 ErrorType 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
    • getValue

      public String getValue()