Package com.authlete.common.dto
Enum CredentialDeferredIssueResponse.Action
- java.lang.Object
-
- java.lang.Enum<CredentialDeferredIssueResponse.Action>
-
- com.authlete.common.dto.CredentialDeferredIssueResponse.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<CredentialDeferredIssueResponse.Action>
- Enclosing class:
- CredentialDeferredIssueResponse
public static enum CredentialDeferredIssueResponse.Action extends Enum<CredentialDeferredIssueResponse.Action>
The next action that the implementation of the deferred credential endpoint should take.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
The original deferred credential request is wrong.CALLER_ERROR
The API call is invalid.FORBIDDEN
The feature of Verifiable Credentials is not enabled in the service configuration.INTERNAL_SERVER_ERROR
An error occurred on Authlete side.OK
A credential was issued successfully.OK_JWT
A credential was issued successfully and the deferred credential response should be encrypted.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CredentialDeferredIssueResponse.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static CredentialDeferredIssueResponse.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 typeapplication/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 typeapplication/jwt
.- Since:
- 3.86
-
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:
- 3.86
-
FORBIDDEN
public static final CredentialDeferredIssueResponse.Action FORBIDDEN
The feature of Verifiable Credentials is not enabled in the service configuration.
-
INTERNAL_SERVER_ERROR
public static final CredentialDeferredIssueResponse.Action INTERNAL_SERVER_ERROR
An error occurred on Authlete side.
-
CALLER_ERROR
public static final CredentialDeferredIssueResponse.Action CALLER_ERROR
The API call is invalid.
-
-
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 nameNullPointerException
- if the argument is null
-
-