pub enum ArtifactRef<'view, 'source> {
Certificate(&'view Certificate<'source>),
Crl(&'view CertificateList<'source>),
Ocsp(&'view BasicResponse<'source>),
}Expand description
One original parsed artifact to locate. This is a source reference, not a receipt of authentication, applicability, freshness or actor membership.
Variants§
Certificate(&'view Certificate<'source>)
Exact original certificate, including a separately supplied anchor.
Crl(&'view CertificateList<'source>)
Exact whole complete or delta CRL. A bound pair requires both artifacts.
Ocsp(&'view BasicResponse<'source>)
Exact basic response from its format-defined retained container. CMS
RFC5940 uses a whole OCSPResponse; legacy CAdES Annex A.1.4 explicitly
carries BasicOCSPResponse. The format issuer admits the REAL placement;
an arbitrary caller body cannot mint an indexed occurrence or evidence.
Implementations§
Source§impl<'source> ArtifactRef<'_, 'source>
impl<'source> ArtifactRef<'_, 'source>
Sourcepub fn identity(self) -> ArtifactKey<'source>
pub fn identity(self) -> ArtifactKey<'source>
Exact identity of the referenced artifact, borrowing its original DER.
Trait Implementations§
Source§impl<'view, 'source> Clone for ArtifactRef<'view, 'source>
impl<'view, 'source> Clone for ArtifactRef<'view, 'source>
impl<'view, 'source> Copy for ArtifactRef<'view, 'source>
Auto Trait Implementations§
impl<'view, 'source> !RefUnwindSafe for ArtifactRef<'view, 'source>
impl<'view, 'source> !Send for ArtifactRef<'view, 'source>
impl<'view, 'source> !Sync for ArtifactRef<'view, 'source>
impl<'view, 'source> !UnwindSafe for ArtifactRef<'view, 'source>
impl<'view, 'source> Freeze for ArtifactRef<'view, 'source>
impl<'view, 'source> Unpin for ArtifactRef<'view, 'source>
impl<'view, 'source> UnsafeUnpin for ArtifactRef<'view, 'source>
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