Search in sources :

Example 1 with ChallengeInBadStateException

use of org.webpieces.plugin.secure.sslcert.ChallengeInBadStateException 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());
    }
}
Also used : Authorization(org.shredzone.acme4j.Authorization) Status(org.shredzone.acme4j.Status) ChallengeInBadStateException(org.webpieces.plugin.secure.sslcert.ChallengeInBadStateException)

Aggregations

Authorization (org.shredzone.acme4j.Authorization)1 Status (org.shredzone.acme4j.Status)1 ChallengeInBadStateException (org.webpieces.plugin.secure.sslcert.ChallengeInBadStateException)1