Package org.xipki.ca.gateway.acme.type
Enum AcmeError
- java.lang.Object
-
- java.lang.Enum<AcmeError>
-
- org.xipki.ca.gateway.acme.type.AcmeError
-
- All Implemented Interfaces:
Serializable,Comparable<AcmeError>
public enum AcmeError extends Enum<AcmeError>
ACME Error.- Author:
- Lijun Liao (xipki)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description accountDoesNotExistThe request specified an account that does not exist.alreadyRevokedThe request specified a certificate to be revoked that has already been revoked.badCSRThe CSR is unacceptable (e.g., due to a short key).badNonceThe client sent an unacceptable anti-replay nonce.badPublicKeyThe JWS was signed by a public key the server does not support.badRevocationReasonThe revocation reason provided is not allowed by the server.badSignatureAlgorithmThe JWS was signed with an algorithm the server does not support.caaCertification Authority Authorization (CAA) records forbid the CA from issuing a certificate.compoundSpecific error conditions are indicated in the "subproblems" array.connectionThe server could not connect to validation target.dnsThere was a problem with a DNS query during identifier validation.externalAccountRequiredThe request must include a value for the "externalAccountBinding" field.incorrectResponseResponse received didn't match the challenge's requirements.invalidContactA contact URL for an account was invalid.malformedThe request message was malformed.orderNotReadyThe request attempted to finalize an order that is not ready to be finalized.rateLimitedThe request exceeds a rate limit.rejectedIdentifierThe server will not issue certificates for the identifier.serverInternalThe server experienced an internal error.tlsThe server received a TLS error during validation.unauthorizedThe client lacks sufficient authorization.unsupportedContactA contact URL for an account used an unsupported protocol scheme.unsupportedIdentifierAn identifier is of an unsupported type.userActionRequiredVisit the "instance" URL and take actions specified there.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetQualifiedCode()static AcmeErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static AcmeError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
accountDoesNotExist
public static final AcmeError accountDoesNotExist
The request specified an account that does not exist.
-
alreadyRevoked
public static final AcmeError alreadyRevoked
The request specified a certificate to be revoked that has already been revoked.
-
badCSR
public static final AcmeError badCSR
The CSR is unacceptable (e.g., due to a short key).
-
badNonce
public static final AcmeError badNonce
The client sent an unacceptable anti-replay nonce.
-
badPublicKey
public static final AcmeError badPublicKey
The JWS was signed by a public key the server does not support.
-
badRevocationReason
public static final AcmeError badRevocationReason
The revocation reason provided is not allowed by the server.
-
badSignatureAlgorithm
public static final AcmeError badSignatureAlgorithm
The JWS was signed with an algorithm the server does not support.
-
caa
public static final AcmeError caa
Certification Authority Authorization (CAA) records forbid the CA from issuing a certificate.
-
compound
public static final AcmeError compound
Specific error conditions are indicated in the "subproblems" array.
-
connection
public static final AcmeError connection
The server could not connect to validation target.
-
dns
public static final AcmeError dns
There was a problem with a DNS query during identifier validation.
-
externalAccountRequired
public static final AcmeError externalAccountRequired
The request must include a value for the "externalAccountBinding" field.
-
incorrectResponse
public static final AcmeError incorrectResponse
Response received didn't match the challenge's requirements.
-
invalidContact
public static final AcmeError invalidContact
A contact URL for an account was invalid.
-
malformed
public static final AcmeError malformed
The request message was malformed.
-
orderNotReady
public static final AcmeError orderNotReady
The request attempted to finalize an order that is not ready to be finalized.
-
rateLimited
public static final AcmeError rateLimited
The request exceeds a rate limit.
-
rejectedIdentifier
public static final AcmeError rejectedIdentifier
The server will not issue certificates for the identifier.
-
serverInternal
public static final AcmeError serverInternal
The server experienced an internal error.
-
tls
public static final AcmeError tls
The server received a TLS error during validation.
-
unauthorized
public static final AcmeError unauthorized
The client lacks sufficient authorization.
-
unsupportedContact
public static final AcmeError unsupportedContact
A contact URL for an account used an unsupported protocol scheme.
-
unsupportedIdentifier
public static final AcmeError unsupportedIdentifier
An identifier is of an unsupported type.
-
userActionRequired
public static final AcmeError userActionRequired
Visit the "instance" URL and take actions specified there.
-
-
Method Detail
-
values
public static AcmeError[] 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 (AcmeError c : AcmeError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AcmeError 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
-
getQualifiedCode
public String getQualifiedCode()
-
-