pub struct Authorization {
pub identifier: Identifier,
pub status: AuthorizationStatus,
pub expires: Option<String>,
pub challenges: Vec<Challenge>,
pub wildcard: Option<bool>,
}Expand description
An ACME authorization object.
Represents a server’s authorization for an account to represent an identifier.
See RFC 8555 §7.1.4.
Fields§
§identifier: IdentifierAuthorization identifier.
status: AuthorizationStatusAuthorization status.
expires: Option<String>The timestamp after which the server will consider this authorization invalid.
Uses RFC 3339 format.
This field is required for objects with “valid” in the “status” field.
challenges: Vec<Challenge>Returns the challenges related to the identifier.
- For pending authorizations, the challenges that the client can fulfill in order to prove possession of the identifier.
- For valid authorizations, the challenge that was validated.
- For invalid authorizations, the challenge that was attempted and failed.
Each array entry is an object with parameters required to validate the challenge. A client should attempt to fulfill one of these challenges, and a server should consider any one of the challenges sufficient to make the authorization valid.
wildcard: Option<bool>This field MUST be present and true for authorizations created as a result of a newOrder request containing a DNS identifier with a value that was a wildcard domain name. For other authorizations, it MUST be absent. Wildcard domain names are described in §7.1.3.
Implementations§
Source§impl Authorization
impl Authorization
Sourcepub fn is_wildcard(&self) -> bool
pub fn is_wildcard(&self) -> bool
Returns true if authorization was created for a wildcard domain.
Sourcepub fn http_challenge(&self) -> Option<&Challenge>
pub fn http_challenge(&self) -> Option<&Challenge>
Returns an http-01 challenge, if one is present.
Sourcepub fn dns_challenge(&self) -> Option<&Challenge>
pub fn dns_challenge(&self) -> Option<&Challenge>
Returns a dns-01 challenge, if one is present.
Sourcepub fn tls_alpn_challenge(&self) -> Option<&Challenge>
pub fn tls_alpn_challenge(&self) -> Option<&Challenge>
Returns a tls-alpn-01 challenge, if one is present.
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more