Class: Google::Apis::BinaryauthorizationV1::AttestorPublicKey
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::AttestorPublicKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/binaryauthorization_v1/classes.rb,
lib/google/apis/binaryauthorization_v1/representations.rb,
lib/google/apis/binaryauthorization_v1/representations.rb
Overview
An attestor public key that will be used to verify attestations signed by this attestor.
Instance Attribute Summary collapse
-
#ascii_armored_pgp_public_key ⇒ 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) . -
#comment ⇒ String
Optional.
-
#id ⇒ String
The ID of this public key.
-
#pkix_public_key ⇒ Google::Apis::BinaryauthorizationV1::PkixPublicKey
A public key in the PkixPublicKey format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttestorPublicKey
constructor
A new instance of AttestorPublicKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttestorPublicKey
Returns a new instance of AttestorPublicKey.
276 277 278 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 276 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ascii_armored_pgp_public_key ⇒ 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 Binary Authorization
API handlers will calculate the ID and fill it in automatically. Binary
Authorization 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
253 254 255 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 253 def ascii_armored_pgp_public_key @ascii_armored_pgp_public_key end |
#comment ⇒ String
Optional. A descriptive comment. This field may be updated.
Corresponds to the JSON property comment
258 259 260 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 258 def comment @comment end |
#id ⇒ String
The ID of this public key. Signatures verified by Binary Authorization 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
267 268 269 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 267 def id @id end |
#pkix_public_key ⇒ Google::Apis::BinaryauthorizationV1::PkixPublicKey
A public key in the PkixPublicKey format. Public keys of this type are typically textually encoded
using the PEM format.
Corresponds to the JSON property pkixPublicKey
274 275 276 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 274 def pkix_public_key @pkix_public_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
281 282 283 284 285 286 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 281 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 |