[−][src]Struct acme_lib::order::Challenge
A DNS or HTTP challenge as obtained from the Auth.
Methods
impl<P: Persist> Challenge<P, 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<P: Persist> Challenge<P, 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<P: Persist, A> Challenge<P, 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<P, A> Send for Challenge<P, A> where
A: Send,
P: Sync,
A: Send,
P: Sync,
impl<P, A> Unpin for Challenge<P, A> where
A: Unpin,
A: Unpin,
impl<P, A> Sync for Challenge<P, A> where
A: Sync,
P: Sync,
A: Sync,
P: Sync,
impl<P, A> UnwindSafe for Challenge<P, A> where
A: UnwindSafe,
P: RefUnwindSafe,
A: UnwindSafe,
P: RefUnwindSafe,
impl<P, A> RefUnwindSafe for Challenge<P, A> where
A: RefUnwindSafe,
P: RefUnwindSafe,
A: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,