pub struct PossessionChallenge { /* private fields */ }Expand description
NDNCERT possession challenge handler.
The client must:
- Sign the
request_idbytes with the private key corresponding to a certificate intrusted_certs. - Submit the certificate name and the base64url-encoded signature as
cert_nameandsignatureparameters.
Implementations§
Source§impl PossessionChallenge
impl PossessionChallenge
Sourcepub fn new(trusted_certs: Vec<Certificate>) -> Self
pub fn new(trusted_certs: Vec<Certificate>) -> Self
Create a challenge that accepts possession of any cert in trusted_certs.
Trait Implementations§
Source§impl ChallengeHandler for PossessionChallenge
impl ChallengeHandler for PossessionChallenge
Source§fn challenge_type(&self) -> &'static str
fn challenge_type(&self) -> &'static str
The challenge type identifier (e.g.
"possession", "token", "pin", "email").Auto Trait Implementations§
impl Freeze for PossessionChallenge
impl RefUnwindSafe for PossessionChallenge
impl Send for PossessionChallenge
impl Sync for PossessionChallenge
impl Unpin for PossessionChallenge
impl UnwindSafe for PossessionChallenge
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