pub struct EnvelopeVerificationContext { /* private fields */ }Expand description
Verifier-owned trust roots, authorization, time window, and policy set.
Implementations§
Source§impl EnvelopeVerificationContext
impl EnvelopeVerificationContext
Sourcepub fn new(not_before: DateTime<Utc>, not_after: DateTime<Utc>) -> Self
pub fn new(not_before: DateTime<Utc>, not_after: DateTime<Utc>) -> Self
Creates a context with an inclusive trusted-time window.
Sourcepub fn with_signer_key(
self,
signer_id: impl Into<String>,
key: [u8; 32],
) -> Self
pub fn with_signer_key( self, signer_id: impl Into<String>, key: [u8; 32], ) -> Self
Registers a verification key without authorizing the signer.
Authorizes a registered signer identity.
Sourcepub fn admit_policy(self, policy_id: impl Into<String>) -> Self
pub fn admit_policy(self, policy_id: impl Into<String>) -> Self
Admits an envelope policy identifier.
Trait Implementations§
Source§impl Clone for EnvelopeVerificationContext
impl Clone for EnvelopeVerificationContext
Source§fn clone(&self) -> EnvelopeVerificationContext
fn clone(&self) -> EnvelopeVerificationContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EnvelopeVerificationContext
impl RefUnwindSafe for EnvelopeVerificationContext
impl Send for EnvelopeVerificationContext
impl Sync for EnvelopeVerificationContext
impl Unpin for EnvelopeVerificationContext
impl UnsafeUnpin for EnvelopeVerificationContext
impl UnwindSafe for EnvelopeVerificationContext
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