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>,
}
Expand description
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§
Source§impl Clone for AttestorPublicKey
impl Clone for AttestorPublicKey
Source§fn clone(&self) -> AttestorPublicKey
fn clone(&self) -> AttestorPublicKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AttestorPublicKey
impl Debug for AttestorPublicKey
Source§impl Default for AttestorPublicKey
impl Default for AttestorPublicKey
Source§fn default() -> AttestorPublicKey
fn default() -> AttestorPublicKey
Source§impl<'de> Deserialize<'de> for AttestorPublicKey
impl<'de> Deserialize<'de> for AttestorPublicKey
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 AttestorPublicKey
impl Serialize for AttestorPublicKey
impl Part for AttestorPublicKey
Auto Trait Implementations§
impl Freeze for AttestorPublicKey
impl RefUnwindSafe for AttestorPublicKey
impl Send for AttestorPublicKey
impl Sync for AttestorPublicKey
impl Unpin for AttestorPublicKey
impl UnwindSafe for AttestorPublicKey
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