# Binary Authorization V1beta1 API - Class Google::Cloud::BinaryAuthorization::V1beta1::AttestorPublicKey (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.1 0.16.0 0.15.1 0.14.0 0.13.1 0.12.2 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 Reference documentation and code samples for the Binary Authorization V1beta1 API class Google::Cloud::BinaryAuthorization::V1beta1::AttestorPublicKey.

An [attestor public key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1beta1/latest/Google-Cloud-BinaryAuthorization-V1beta1-AttestorPublicKey "Google::Cloud::BinaryAuthorization::V1beta1::AttestorPublicKey (class)") that will be used to verify
attestations signed by this attestor.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #ascii_armored_pgp_public_key

    def ascii_armored_pgp_public_key() -> ::String

**Returns**

- (::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.


  Note: The following fields are mutually exclusive: `ascii_armored_pgp_public_key`, `pkix_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #ascii_armored_pgp_public_key=

    def ascii_armored_pgp_public_key=(value) -> ::String

**Parameter**

- **value** (::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.


  Note: The following fields are mutually exclusive: `ascii_armored_pgp_public_key`, `pkix_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::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.


  Note: The following fields are mutually exclusive: `ascii_armored_pgp_public_key`, `pkix_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #comment

    def comment() -> ::String

**Returns**

- (::String) --- Optional. A descriptive comment. This field may be updated.

### #comment=

    def comment=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A descriptive comment. This field may be updated.
**Returns**

- (::String) --- Optional. A descriptive comment. This field may be updated.

### #id

    def id() -> ::String

**Returns**

- (::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.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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

    def pkix_public_key() -> ::Google::Cloud::BinaryAuthorization::V1beta1::PkixPublicKey

**Returns**

- ([::Google::Cloud::BinaryAuthorization::V1beta1::PkixPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1beta1/latest/Google-Cloud-BinaryAuthorization-V1beta1-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.

  Note: The following fields are mutually exclusive: `pkix_public_key`, `ascii_armored_pgp_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #pkix_public_key=

    def pkix_public_key=(value) -> ::Google::Cloud::BinaryAuthorization::V1beta1::PkixPublicKey

**Parameter**

- **value** ([::Google::Cloud::BinaryAuthorization::V1beta1::PkixPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1beta1/latest/Google-Cloud-BinaryAuthorization-V1beta1-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.

  Note: The following fields are mutually exclusive: `pkix_public_key`, `ascii_armored_pgp_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::BinaryAuthorization::V1beta1::PkixPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1beta1/latest/Google-Cloud-BinaryAuthorization-V1beta1-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.

  Note: The following fields are mutually exclusive: `pkix_public_key`, `ascii_armored_pgp_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.