2.7.0 (latest) 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    public sealed class PkixPublicKey : IMessage<PkixPublicKey>, IEquatable<PkixPublicKey>, IDeepCloneable<PkixPublicKey>, IBufferMessage, IMessage

Reference documentation and code samples for the Binary Authorization v1 API class PkixPublicKey.

A public key in the PkixPublicKey
[format](https://tools.ietf.org/html/rfc5280#section-4.1.2.7). Public keys of
this type are typically textually encoded using the PEM format.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PkixPublicKey

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PkixPublicKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.PkixPublicKey.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PkixPublicKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.PkixPublicKey.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PkixPublicKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.PkixPublicKey.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BinaryAuthorization.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.md.txt)

## Assembly

Google.Cloud.BinaryAuthorization.V1.dll

## Constructors

### PkixPublicKey()

    public PkixPublicKey()

### PkixPublicKey(PkixPublicKey)

    public PkixPublicKey(PkixPublicKey other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PkixPublicKey` |

## Properties

### KeyId

    public string KeyId { get; set; }

Optional. 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. The ID must match exactly
contents of the `key_id` field exactly.

The ID may be explicitly provided by the caller, but it MUST be a valid
RFC3986 URI. If `key_id` is left blank and this `PkixPublicKey` is not used
in the context of a wrapper (see next paragraph), a default key ID will be
computed based on the digest of the DER encoding of the public key.

If this `PkixPublicKey` is used in the context of a wrapper that has its
own notion of key ID (e.g. `AttestorPublicKey`), then this field can
either match that value exactly, or be left blank, in which case it behaves
exactly as though it is equal to that wrapper value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PublicKeyPem

    public string PublicKeyPem { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SignatureAlgorithm

    public PkixPublicKey.Types.SignatureAlgorithm SignatureAlgorithm { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PkixPublicKeyTypesSignatureAlgorithm` |   |