class Google::Apis::BinaryauthorizationV1::AttestorPublicKey

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

Attributes

ascii_armored_pgp_public_key[RW]

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. Corresponds to the JSON property `asciiArmoredPgpPublicKey` @return [String]

comment[RW]

Optional. A descriptive comment. This field may be updated. Corresponds to the JSON property `comment` @return [String]

id[RW]

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. Corresponds to the JSON property `id` @return [String]

pkix_public_key[RW]

A public key in the PkixPublicKey format (see tools.ietf.org/html/ rfc5280#section-4.1.2.7 for details). Public keys of this type are typically textually encoded using the PEM format. Corresponds to the JSON property `pkixPublicKey` @return [Google::Apis::BinaryauthorizationV1::PkixPublicKey]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/binaryauthorization_v1/classes.rb, line 211
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/binaryauthorization_v1/classes.rb, line 216
def update!(**args)
  @ascii_armored_pgp_public_key = args[:ascii_armored_pgp_public_key] if args.key?(:ascii_armored_pgp_public_key)
  @comment = args[:comment] if args.key?(:comment)
  @id = args[:id] if args.key?(:id)
  @pkix_public_key = args[:pkix_public_key] if args.key?(:pkix_public_key)
end