Class AcmeValidationHandler
java.lang.Object
com.digicert.validation.methods.acme.validate.AcmeValidationHandler
Handles ACME validation processes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate final org.slf4j.event.LevelThe log level used for logging errors related to domain control validation (DCV).private final MpicDnsServiceThe MPIC service used to fetch DNS details.private final MpicFileServiceThe MPIC service used to fetch FILE details. -
Constructor Summary
ConstructorsConstructorDescriptionAcmeValidationHandler(DcvContext dcvContext) Constructs a new AcmeValidationHandler with the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringvalidate(AcmeValidationRequest request) This method performs the ACME validation based on the given ACME validation request.private AcmeValidationResponseprivate AcmeValidationResponse
-
Field Details
-
ACME_DNS_PREFIX
- See Also:
-
ACME_HTTP_URL_TEMPLATE
- See Also:
-
mpicDnsService
The MPIC service used to fetch DNS details. -
mpicFileService
The MPIC service used to fetch FILE details. -
logLevelForDcvErrors
private final org.slf4j.event.Level logLevelForDcvErrorsThe log level used for logging errors related to domain control validation (DCV).
-
-
Constructor Details
-
AcmeValidationHandler
Constructs a new AcmeValidationHandler with the specified configuration.- Parameters:
dcvContext- context where we can find the necessary dependencies / configuration
-
-
Method Details
-
validate
This method performs the ACME validation based on the given ACME validation request.- Parameters:
request- the DNS validation request- Returns:
- the ACME validation response
- Throws:
ValidationException
-
validateUsingAcmeHttp
private AcmeValidationResponse validateUsingAcmeHttp(AcmeValidationRequest request) throws ValidationException - Throws:
ValidationException
-
validateUsingAcmeDns
private AcmeValidationResponse validateUsingAcmeDns(AcmeValidationRequest request) throws ValidationException - Throws:
ValidationException
-
calculateDnsTxtValue
- Throws:
ValidationException
-