Struct gapi_grpc::grafeas::v1beta1::attestation::PgpSignedAttestation[][src]

pub struct PgpSignedAttestation {
    pub signature: String,
    pub content_type: i32,
    pub key_id: Option<KeyId>,
}

An attestation wrapper with a PGP-compatible signature. This message only supports ATTACHED signatures, where the payload that is signed is included alongside the signature itself in the same file.

Fields

signature: String

Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (--armor to gpg), non-clearsigned (--sign rather than --clearsign to gpg) are supported. Concretely, gpg --sign --armor --output=signature.gpg payload.json will create the signature content expected in this field in signature.gpg for the payload.json attestation payload.

content_type: i32

Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).

key_id: Option<KeyId>

This field is used by verifiers to select the public key used to validate the signature. Note that the policy of the verifier ultimately determines which public keys verify a signature based on the context of the verification. There is no guarantee validation will succeed if the verifier has no key matching this ID, even if it has a key under a different ID that would verify the signature. Note that this ID should also be present in the signature content above, but that is not expected to be used by the verifier.

Implementations

impl PgpSignedAttestation[src]

pub fn content_type(&self) -> ContentType[src]

Returns the enum value of content_type, or the default if the field is set to an invalid enum value.

pub fn set_content_type(&mut self, value: ContentType)[src]

Sets content_type to the provided enum value.

Trait Implementations

impl Clone for PgpSignedAttestation[src]

impl Debug for PgpSignedAttestation[src]

impl Default for PgpSignedAttestation[src]

impl Message for PgpSignedAttestation[src]

impl PartialEq<PgpSignedAttestation> for PgpSignedAttestation[src]

impl StructuralPartialEq for PgpSignedAttestation[src]

Auto Trait Implementations

impl RefUnwindSafe for PgpSignedAttestation

impl Send for PgpSignedAttestation

impl Sync for PgpSignedAttestation

impl Unpin for PgpSignedAttestation

impl UnwindSafe for PgpSignedAttestation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]