[−][src]Struct acme_micro::order::Challenge
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,
A: RefUnwindSafe,
impl<A> Send for Challenge<A> where
A: Send,
A: Send,
impl<A> Sync for Challenge<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Challenge<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Challenge<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
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>,