Struct google_api_proto::grafeas::v1beta1::build::BuildSignature
source · pub struct BuildSignature {
pub public_key: String,
pub signature: Bytes,
pub key_id: String,
pub key_type: i32,
}
Expand description
Message encapsulating the signature of the verified build.
Fields§
§public_key: String
Public key of the builder which can be used to verify that the related
findings are valid and unchanged. If key_type
is empty, this defaults
to PEM encoded public keys.
This field may be empty if key_id
references an external key.
For Cloud Build based signatures, this is a PEM encoded public
key. To verify the Cloud Build signature, place the contents of
this field into a file (public.pem). The signature field is base64-decoded
into its binary representation in signature.bin, and the provenance bytes
from BuildDetails
are base64-decoded into a binary representation in
signed.bin. OpenSSL can then verify the signature:
openssl sha256 -verify public.pem -signature signature.bin signed.bin
signature: Bytes
Required. Signature of the related BuildProvenance
. In JSON, this is
base-64 encoded.
key_id: String
An ID for the key used to sign. This could be either an ID for the key
stored in public_key
(such as the ID or fingerprint for a PGP key, or the
CN for a cert), or a reference to an external key (such as a reference to a
key in Cloud Key Management Service).
key_type: i32
The type of the key, either stored in public_key
or referenced in
key_id
.
Implementations§
Trait Implementations§
source§impl Clone for BuildSignature
impl Clone for BuildSignature
source§fn clone(&self) -> BuildSignature
fn clone(&self) -> BuildSignature
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BuildSignature
impl Debug for BuildSignature
source§impl Default for BuildSignature
impl Default for BuildSignature
source§impl Message for BuildSignature
impl Message for BuildSignature
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for BuildSignature
impl PartialEq for BuildSignature
source§fn eq(&self, other: &BuildSignature) -> bool
fn eq(&self, other: &BuildSignature) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BuildSignature
Auto Trait Implementations§
impl !Freeze for BuildSignature
impl RefUnwindSafe for BuildSignature
impl Send for BuildSignature
impl Sync for BuildSignature
impl Unpin for BuildSignature
impl UnwindSafe for BuildSignature
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request