[][src]Struct acme_micro::order::Challenge

pub struct Challenge<A> { /* fields omitted */ }

A DNS, HTTP, or TLS-ALPN challenge as obtained from the Auth.

Methods

impl Challenge<Http>[src]

pub fn http_token(&self) -> &str[src]

The token is a unique identifier of the challenge. It is the file name in the http challenge like so:

http://<domain-to-be-proven>/.well-known/acme-challenge/<token>

pub fn http_proof(&self) -> String[src]

The proof is some text content that is placed in the file named by token.

impl Challenge<Dns>[src]

pub fn dns_proof(&self) -> String[src]

The proof is the TXT record placed under:

_acme-challenge.<domain-to-be-proven>.  TXT  <proof>

impl Challenge<TlsAlpn>[src]

pub fn tls_alpn_proof(&self) -> [u8; 32][src]

The proof is the contents of the ACME extension to be placed in the certificate used for validation.

impl<A> Challenge<A>[src]

pub fn need_validate(&self) -> bool[src]

Check whether this challlenge really need validation. It might already been done in a previous order for the same account.

pub fn validate(self, delay_millis: u64) -> Result<()>[src]

Tell the ACME API to attempt validating the proof of this challenge.

The user must first update the DNS record or HTTP web server depending on the type challenge being validated.

pub fn api_challenge(&self) -> &ApiChallenge[src]

Access the underlying JSON object for debugging.

Auto Trait Implementations

impl<A> RefUnwindSafe for Challenge<A> where
    A: RefUnwindSafe

impl<A> Send for Challenge<A> where
    A: Send

impl<A> Sync for Challenge<A> where
    A: Sync

impl<A> Unpin for Challenge<A> where
    A: Unpin

impl<A> UnwindSafe for Challenge<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.