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 execution_in<'operation, W: Work>(
&self,
work: &'operation W,
) -> Execution<'operation>where
'source: 'operation,
pub fn execution_in<'operation, W: Work>(
&self,
work: &'operation W,
) -> Execution<'operation>where
'source: 'operation,
Original artifact and current-operation funding for a new hash, comparison or retained query result. Equal accounts do not waive the producing local ceiling, and no wire input is reparsed.
Sourcepub fn identity(self) -> ArtifactKey<'source>
pub fn identity(self) -> ArtifactKey<'source>
Exact identity of the referenced artifact, borrowing its original DER.