Package com.authlete.common.dto
Enum CredentialNonceResponse.Action
- java.lang.Object
-
- java.lang.Enum<CredentialNonceResponse.Action>
-
- com.authlete.common.dto.CredentialNonceResponse.Action
-
- All Implemented Interfaces:
Serializable,Comparable<CredentialNonceResponse.Action>
- Enclosing class:
- CredentialNonceResponse
public static enum CredentialNonceResponse.Action extends Enum<CredentialNonceResponse.Action>
The next action that the implementation of the nonce endpoint should take after getting a response from Authlete's/vci/nonceAPI.- Since:
- 4.27, Authlete 3.0.22
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_SERVER_ERRORAn unexpected error occurred on Authlete side or the service has not been set up properly yet.NOT_FOUNDThe feature of Verifiable Credentials is not enabled.OKA nonce response has been prepared successfully.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CredentialNonceResponse.ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static CredentialNonceResponse.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 CredentialNonceResponse.Action OK
A nonce response has been prepared successfully. The implementation of the nonce endpoint should return an HTTP response with the HTTP status code "200 OK" and the content type "application/json".
-
NOT_FOUND
public static final CredentialNonceResponse.Action NOT_FOUND
The feature of Verifiable Credentials is not enabled. The implementation of the nonce endpoint should return an HTTP response with the HTTP status code "404 Not Found" and the content type "application/json" to indicate that the endpoint should not be accessed.
-
INTERNAL_SERVER_ERROR
public static final CredentialNonceResponse.Action INTERNAL_SERVER_ERROR
An unexpected error occurred on Authlete side or the service has not been set up properly yet. A simple implementation of the nonce endpoint would return an HTTP response with the HTTP status code "500 Internal Server Error" and the content type "application/json".
-
-
Method Detail
-
values
public static CredentialNonceResponse.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 (CredentialNonceResponse.Action c : CredentialNonceResponse.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 CredentialNonceResponse.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
-
-