pub struct Challenge<P: Persist, A> { /* private fields */ }
Expand description
A DNS, HTTP, or TLS-ALPN challenge as obtained from the Auth
.
Implementations§
Source§impl<P: Persist> Challenge<P, Http>
impl<P: Persist> Challenge<P, Http>
Sourcepub fn http_token(&self) -> &str
pub fn http_token(&self) -> &str
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>
Sourcepub fn http_proof(&self) -> String
pub fn http_proof(&self) -> String
The proof
is some text content that is placed in the file named by token
.
Source§impl<P: Persist> Challenge<P, TlsAlpn>
impl<P: Persist> Challenge<P, TlsAlpn>
Sourcepub fn tls_alpn_proof(&self) -> [u8; 32]
pub fn tls_alpn_proof(&self) -> [u8; 32]
The proof
is the contents of the ACME extension to be placed in the
certificate used for validation.
Source§impl<P: Persist, A> Challenge<P, A>
impl<P: Persist, A> Challenge<P, A>
Sourcepub fn need_validate(&self) -> bool
pub fn need_validate(&self) -> bool
Check whether this challlenge really need validation. It might already been done in a previous order for the same account.
Sourcepub fn validate(self, delay_millis: u64) -> Result<()>
pub fn validate(self, delay_millis: u64) -> Result<()>
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.
Sourcepub fn api_challenge(&self) -> &ApiChallenge
pub fn api_challenge(&self) -> &ApiChallenge
Access the underlying JSON object for debugging.
Auto Trait Implementations§
impl<P, A> Freeze for Challenge<P, A>
impl<P, A> RefUnwindSafe for Challenge<P, A>where
A: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, A> Send for Challenge<P, A>
impl<P, A> Sync for Challenge<P, A>
impl<P, A> Unpin for Challenge<P, A>where
A: Unpin,
impl<P, A> UnwindSafe for Challenge<P, A>where
A: UnwindSafe,
P: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more