pub trait ValidateUserID<'s, S: SOP<'s>, Certs: Load<'s, S>> {
// Required methods
fn trust_roots(
self: Box<Self>,
certs: &Certs,
) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>;
fn target_certs(
self: Box<Self>,
certs: &Certs,
) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>;
fn validate_at(
self: Box<Self>,
at: SystemTime,
) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>;
fn userid(self: Box<Self>, userid: &str) -> Result<()>;
fn email(self: Box<Self>, email: &str) -> Result<()>;
}Expand description
Builder for SOP::validate_userid.
Required Methods§
Sourcefn trust_roots(
self: Box<Self>,
certs: &Certs,
) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>
fn trust_roots( self: Box<Self>, certs: &Certs, ) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>
Supplies authority OpenPGP certificates, i.e. trust roots.
Sourcefn target_certs(
self: Box<Self>,
certs: &Certs,
) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>
fn target_certs( self: Box<Self>, certs: &Certs, ) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>
Tests that these certificates have the given User ID.
Sourcefn validate_at(
self: Box<Self>,
at: SystemTime,
) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>
fn validate_at( self: Box<Self>, at: SystemTime, ) -> Result<Box<dyn ValidateUserID<'s, S, Certs> + 's>>
Evaluate the validity of the User ID at the specified time, not at the current time.