pub trait Verify<'a> {
fn not_before(self: Box<Self>, t: SystemTime) -> Box<dyn Verify<'a> + 'a>;
fn not_after(self: Box<Self>, t: SystemTime) -> Box<dyn Verify<'a> + 'a>;
fn cert(
self: Box<Self>,
cert: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Verify<'a> + 'a>>;
fn certs(
self: Box<Self>,
certs: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Verify<'a> + 'a>>;
fn signatures(
self: Box<Self>,
signatures: &'a mut (dyn Read + Send + Sync)
) -> Result<Box<dyn VerifySignatures + 'a>>;
}
Expand description
Builder for SOP::verify
.
Required Methods§
sourcefn not_before(self: Box<Self>, t: SystemTime) -> Box<dyn Verify<'a> + 'a>
fn not_before(self: Box<Self>, t: SystemTime) -> Box<dyn Verify<'a> + 'a>
Makes SOP consider signatures before this date invalid.
sourcefn not_after(self: Box<Self>, t: SystemTime) -> Box<dyn Verify<'a> + 'a>
fn not_after(self: Box<Self>, t: SystemTime) -> Box<dyn Verify<'a> + 'a>
Makes SOP consider signatures after this date invalid.
sourcefn cert(
self: Box<Self>,
cert: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Verify<'a> + 'a>>
fn cert(
self: Box<Self>,
cert: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Verify<'a> + 'a>>
Adds the verification cert.
sourcefn certs(
self: Box<Self>,
certs: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Verify<'a> + 'a>>
fn certs(
self: Box<Self>,
certs: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Verify<'a> + 'a>>
Adds the verification certs.
Like Verify::cert
, but for multiple certs.
sourcefn signatures(
self: Box<Self>,
signatures: &'a mut (dyn Read + Send + Sync)
) -> Result<Box<dyn VerifySignatures + 'a>>
fn signatures(
self: Box<Self>,
signatures: &'a mut (dyn Read + Send + Sync)
) -> Result<Box<dyn VerifySignatures + 'a>>
Provides the signatures.