public sealed class AttestorPublicKey : IMessage<AttestorPublicKey>, IEquatable<AttestorPublicKey>, IDeepCloneable<AttestorPublicKey>, IBufferMessage, IMessage
Reference documentation and code samples for the Binary Authorization v1 API class AttestorPublicKey.
An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify attestations signed by this attestor.
Implements
IMessageAttestorPublicKey, IEquatableAttestorPublicKey, IDeepCloneableAttestorPublicKey, IBufferMessage, IMessageNamespace
Google.Cloud.BinaryAuthorization.V1Assembly
Google.Cloud.BinaryAuthorization.V1.dll
Constructors
AttestorPublicKey()
public AttestorPublicKey()
AttestorPublicKey(AttestorPublicKey)
public AttestorPublicKey(AttestorPublicKey other)
Parameter | |
---|---|
Name | Description |
other |
AttestorPublicKey |
Properties
AsciiArmoredPgpPublicKey
public string AsciiArmoredPgpPublicKey { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
Comment
public string Comment { get; set; }
Optional. A descriptive comment. This field may be updated.
Property Value | |
---|---|
Type | Description |
string |
HasAsciiArmoredPgpPublicKey
public bool HasAsciiArmoredPgpPublicKey { get; }
Gets whether the "ascii_armored_pgp_public_key" field is set
Property Value | |
---|---|
Type | Description |
bool |
Id
public string Id { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
PkixPublicKey
public PkixPublicKey PkixPublicKey { get; set; }
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.
Property Value | |
---|---|
Type | Description |
PkixPublicKey |
PublicKeyCase
public AttestorPublicKey.PublicKeyOneofCase PublicKeyCase { get; }
Property Value | |
---|---|
Type | Description |
AttestorPublicKeyPublicKeyOneofCase |