use of org.shredzone.acme4j.Status in project webpieces by deanhiller.
the class AcmeClientProxy method checkAuthStatii.
private void checkAuthStatii(Order order) {
for (Authorization auth : order.getAuthorizations()) {
Status status = auth.getStatus();
log.info("checking auth=" + auth.getIdentifier().getDomain() + " status=" + status + " location=" + auth.getLocation() + " expires=" + auth.getExpires());
if (status != Status.PENDING)
throw new ChallengeInBadStateException("challenge in bad state=" + auth.getJSON());
}
}
Aggregations