Struct google_binaryauthorization1_beta1::api::AttestorPublicKey[][src]

pub struct AttestorPublicKey {
    pub ascii_armored_pgp_public_key: Option<String>,
    pub comment: Option<String>,
    pub id: Option<String>,
    pub pkix_public_key: Option<PkixPublicKey>,
}

An attestor public key that will be used to verify attestations signed by this attestor.

This type is not used in any activity, and only used as part of another schema.

Fields

ascii_armored_pgp_public_key: Option<String>

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

comment: Option<String>

Optional. A descriptive comment. This field may be updated.

id: Option<String>

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

pkix_public_key: Option<PkixPublicKey>

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

Trait Implementations

impl Clone for AttestorPublicKey[src]

impl Debug for AttestorPublicKey[src]

impl Default for AttestorPublicKey[src]

impl<'de> Deserialize<'de> for AttestorPublicKey[src]

impl Part for AttestorPublicKey[src]

impl Serialize for AttestorPublicKey[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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.