# Class PublicKey (1.19.0)

1.19.0 (latest) 1.18.0 1.17.0 1.16.0 1.15.0 1.14.3 1.13.1 1.12.2 1.11.0 1.10.3 1.9.0 1.8.1 1.7.1 1.6.1 1.5.0 1.4.3 1.3.2 1.2.4 1.1.0 1.0.6 0.4.0 0.3.0 0.1.1

    PublicKey(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A PublicKey
describes a public key.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1beta1.types.PublicKey.KeyType` Required. The type of public key. |
| `key` | `bytes` Required. A public key. Padding and encoding varies by 'KeyType' and is described along with the KeyType values. |

## Classes

### KeyType

    KeyType(value)

Types of public keys that are supported. At a minimum, we support
RSA and ECDSA, for the key sizes or curves listed:
<https://cloud.google.com/kms/docs/algorithms#asymmetric_signing_algorithms>