pub struct VerificationContext { /* private fields */ }Expand description
Stateful verifier for trusted issuers, revocations, and credentials.
Implementations§
Source§impl VerificationContext
impl VerificationContext
Verify and trust an issuer authority for subsequent credential checks.
Sourcepub fn add_revocation(
&mut self,
signed_revocation: &SignedRevocation,
) -> Result<(), CredentialsError>
pub fn add_revocation( &mut self, signed_revocation: &SignedRevocation, ) -> Result<(), CredentialsError>
Verify and store a signed revocation from a trusted issuer.
Sourcepub fn verify_credential(
&self,
credential: &SignedCredential,
) -> Result<(), CredentialsError>
pub fn verify_credential( &self, credential: &SignedCredential, ) -> Result<(), CredentialsError>
Verify a finalized credential against trusted issuers and revocations.
Verify a credential and a holder authorization.
The SDK verifies signatures, issuer trust, credential revocation state,
credential binding, holder binding, and the authorization issued-at time.
Application policy still owns live proof that the caller controls
authorization.authorization.subject_pubkey.
Verify a credential and holder authorization using an explicit timestamp.
Trait Implementations§
Source§impl Clone for VerificationContext
impl Clone for VerificationContext
Source§fn clone(&self) -> VerificationContext
fn clone(&self) -> VerificationContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for VerificationContext
impl Default for VerificationContext
Source§fn default() -> VerificationContext
fn default() -> VerificationContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VerificationContext
impl RefUnwindSafe for VerificationContext
impl Send for VerificationContext
impl Sync for VerificationContext
impl Unpin for VerificationContext
impl UnsafeUnpin for VerificationContext
impl UnwindSafe for VerificationContext
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