# Binary Authorization V1 API - Class Google::Cloud::BinaryAuthorization::V1::PkixPublicKey (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.0 0.3.0 0.2.1 0.1.2 Reference documentation and code samples for the Binary Authorization V1 API class Google::Cloud::BinaryAuthorization::V1::PkixPublicKey.

A public key in the PkixPublicKey format (see
<https://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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #public_key_pem

    def public_key_pem() -> ::String

**Returns**

- (::String) --- A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

### #public_key_pem=

    def public_key_pem=(value) -> ::String

**Parameter**

- **value** (::String) --- A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
**Returns**

- (::String) --- A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

### #signature_algorithm

    def signature_algorithm() -> ::Google::Cloud::BinaryAuthorization::V1::PkixPublicKey::SignatureAlgorithm

**Returns**

- ([::Google::Cloud::BinaryAuthorization::V1::PkixPublicKey::SignatureAlgorithm](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-PkixPublicKey-SignatureAlgorithm)) --- The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).

### #signature_algorithm=

    def signature_algorithm=(value) -> ::Google::Cloud::BinaryAuthorization::V1::PkixPublicKey::SignatureAlgorithm

**Parameter**

- **value** ([::Google::Cloud::BinaryAuthorization::V1::PkixPublicKey::SignatureAlgorithm](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-PkixPublicKey-SignatureAlgorithm)) --- The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).
**Returns**

- ([::Google::Cloud::BinaryAuthorization::V1::PkixPublicKey::SignatureAlgorithm](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-PkixPublicKey-SignatureAlgorithm)) --- The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in `public_key_pem` (i.e. this algorithm must match that of the public key).