Enum CredentialDeferredIssueResponse.Action

    • Enum Constant Detail

      • OK

        public static final CredentialDeferredIssueResponse.Action OK
        A credential was issued successfully. The implementation of the deferred credential endpoint should return a successful response with the HTTP status code "200 OK" and the content type application/json.
      • OK_JWT

        public static final CredentialDeferredIssueResponse.Action OK_JWT
        A credential was issued successfully and the deferred credential response should be encrypted. The implementation of the deferred credential endpoint should return a successful response with the TTP status code "200 OK" and the content type application/jwt.
        Since:
        3.86
      • ACCEPTED

        public static final CredentialDeferredIssueResponse.Action ACCEPTED
        The requested credential is not ready yet. The implementation of the deferred credential endpoint should return a successful response with the HTTP status code "202 Accepted" and the content type application/json.
        Since:
        4.35, Authlete 3.0.25
      • ACCEPTED_JWT

        public static final CredentialDeferredIssueResponse.Action ACCEPTED_JWT
        The requested credential is not ready yet and the deferred credential response should be encrypted. The implementation of the deferred credential endpoint should return a successful response with the HTTP status code "202 Accepted" and the content type application/jwt.
        Since:
        4.35, Authlete 3.0.25
      • BAD_REQUEST

        public static final CredentialDeferredIssueResponse.Action BAD_REQUEST
        The original deferred credential request is wrong. This can happen, for example, when the process for encrypting the deferred credential response with the encryption parameters specified in the deferred credential request failed.

        Since Authlete 3.0.25, this action is returned also when the credential issuer has decided not to issue a credential for the presented transaction ID (that is, when the /vci/deferred/issue API is called with denied set to true).

        Since:
        3.86
    • Method Detail

      • values

        public static CredentialDeferredIssueResponse.Action[] 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 (CredentialDeferredIssueResponse.Action c : CredentialDeferredIssueResponse.Action.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CredentialDeferredIssueResponse.Action valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null