pub struct AttestationOccurrence {
pub jwts: Option<Vec<Jwt>>,
pub serialized_payload: Option<Vec<u8>>,
pub signatures: Option<Vec<Signature>>,
}
Expand description
Occurrence that represents a single “attestation”. The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign.
This type is not used in any activity, and only used as part of another schema.
Fields§
§jwts: Option<Vec<Jwt>>
One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the serialized_payload
field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the serialized_payload
SHOULD be left empty. Each JWT SHOULD encode a claim specific to the resource_uri
of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
serialized_payload: Option<Vec<u8>>
Required. The serialized payload that is verified by one or more signatures
.
signatures: Option<Vec<Signature>>
One or more signatures over serialized_payload
. Verifier implementations should consider this attestation message verified if at least one signature
verifies serialized_payload
. See Signature
in common.proto for more details on signature structure and verification.
Trait Implementations§
Source§impl Clone for AttestationOccurrence
impl Clone for AttestationOccurrence
Source§fn clone(&self) -> AttestationOccurrence
fn clone(&self) -> AttestationOccurrence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AttestationOccurrence
impl Debug for AttestationOccurrence
Source§impl Default for AttestationOccurrence
impl Default for AttestationOccurrence
Source§fn default() -> AttestationOccurrence
fn default() -> AttestationOccurrence
Source§impl<'de> Deserialize<'de> for AttestationOccurrence
impl<'de> Deserialize<'de> for AttestationOccurrence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for AttestationOccurrence
impl Serialize for AttestationOccurrence
impl Part for AttestationOccurrence
Auto Trait Implementations§
impl Freeze for AttestationOccurrence
impl RefUnwindSafe for AttestationOccurrence
impl Send for AttestationOccurrence
impl Sync for AttestationOccurrence
impl Unpin for AttestationOccurrence
impl UnwindSafe for AttestationOccurrence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more