Enum google_api_proto::google::cloud::binaryauthorization::v1::attestor_public_key::PublicKey
source · pub enum PublicKey {
AsciiArmoredPgpPublicKey(String),
PkixPublicKey(PkixPublicKey),
}
Variants§
AsciiArmoredPgpPublicKey(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.
PkixPublicKey(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.
Implementations§
source§impl PublicKey
impl PublicKey
sourcepub fn merge(
field: &mut Option<PublicKey>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<PublicKey>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for PublicKey
impl PartialEq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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