pub struct WorkloadTrust { /* private fields */ }Expand description
Trusted instance-identity roots plus the replay cache.
Implementations§
Source§impl WorkloadTrust
impl WorkloadTrust
Sourcepub fn from_pem(pem: &[u8]) -> Result<Self, WorkloadError>
pub fn from_pem(pem: &[u8]) -> Result<Self, WorkloadError>
Trust the CERTIFICATE blocks of a PEM bundle as roots.
Sourcepub fn anchor_count(&self) -> usize
pub fn anchor_count(&self) -> usize
Number of trusted roots.
Sourcepub fn verify(
&self,
assertion: &str,
audience: &str,
now_s: u64,
) -> Result<VerifiedAssertion, WorkloadError>
pub fn verify( &self, assertion: &str, audience: &str, now_s: u64, ) -> Result<VerifiedAssertion, WorkloadError>
Verify an assertion addressed to audience at now_s.
Auto Trait Implementations§
impl !Freeze for WorkloadTrust
impl !RefUnwindSafe for WorkloadTrust
impl Send for WorkloadTrust
impl Sync for WorkloadTrust
impl Unpin for WorkloadTrust
impl UnsafeUnpin for WorkloadTrust
impl UnwindSafe for WorkloadTrust
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