NAME

Net::ACME2::Authorization

DESCRIPTION

The ACME Authorization object.

ACCESSORS

These provide text strings as defined in the ACME specification.

  • id()

  • status()

  • expires()

  • retry_after()

    The Retry-After value from the most recent poll response, or undef if the server did not send one. Only populated after poll_authorization().

OBJ->retry_after_seconds()

Parses the Retry-After header value (from the most recent poll) into an integer number of seconds. Handles both delay-seconds and HTTP-date formats per RFC 7231.

Returns undef if no Retry-After was present, or 0 if the HTTP-date is in the past.

OTHER METHODS

OBJ->wildcard()

Returns a Perl boolean that indicates whether the authorization is for a wildcard DNS name.

OBJ->identifier()

The order's identifier, as a hash reference. The content matches the ACME specification. (NB: Wildcard authorizations do NOT contain the leading *. in the value.)

OBJ->challenges()

The order's challenges, as a list of Net::ACME2::Challenge instances. (http-01 challenges will be instances of Net::ACME2::Challenge::http_01.)

Unrecognized challenge types are returned as base Net::ACME2::Challenge instances. This allows callers to inspect their type(), token(), status(), and url() accessors even when no dedicated subclass exists.