Values:
UNSPECIFIED_PUBLIC_KEY_FORMAT (0):
The format has not been specified. This is an
invalid default value and must not be used.
RSA_PEM (3):
An RSA public key encoded in base64, and wrapped by
-----BEGIN PUBLIC KEY----- and
-----END PUBLIC KEY-----. This can be used to verify
RS256 signatures in JWT tokens
(RFC7518 <https://www.ietf.org/rfc/rfc7518.txt>).
RSA_X509_PEM (1):
As RSA_PEM, but wrapped in an X.509v3 certificate
(RFC5280 <https://www.ietf.org/rfc/rfc5280.txt>),
encoded in base64, and wrapped by
-----BEGIN CERTIFICATE----- and
-----END CERTIFICATE-----.
ES256_PEM (2):
Public key for the ECDSA algorithm using P-256 and SHA-256,
encoded in base64, and wrapped by
-----BEGIN PUBLIC KEY----- and
-----END PUBLIC KEY-----. This can be used to verify JWT
tokens with the ES256 algorithm
(RFC7518 <https://www.ietf.org/rfc/rfc7518.txt>). This
curve is defined in OpenSSL <https://www.openssl.org/>
as the prime256v1 curve.
ES256_X509_PEM (4):
As ES256_PEM, but wrapped in an X.509v3 certificate
(RFC5280 <https://www.ietf.org/rfc/rfc5280.txt>__),
encoded in base64, and wrapped by
-----BEGIN CERTIFICATE----- and
-----END CERTIFICATE-----.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class PublicKeyFormat (2.9.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.9.2 (latest)](/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.9.1](/python/docs/reference/cloudiot/2.9.1/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.8.1](/python/docs/reference/cloudiot/2.8.1/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.7.0](/python/docs/reference/cloudiot/2.7.0/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.6.4](/python/docs/reference/cloudiot/2.6.4/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.5.1](/python/docs/reference/cloudiot/2.5.1/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.4.1](/python/docs/reference/cloudiot/2.4.1/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.3.0](/python/docs/reference/cloudiot/2.3.0/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.2.1](/python/docs/reference/cloudiot/2.2.1/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.1.0](/python/docs/reference/cloudiot/2.1.0/google.cloud.iot_v1.types.PublicKeyFormat)\n- [2.0.2](/python/docs/reference/cloudiot/2.0.2/google.cloud.iot_v1.types.PublicKeyFormat)\n- [1.0.2](/python/docs/reference/cloudiot/1.0.2/google.cloud.iot_v1.types.PublicKeyFormat)\n- [0.3.3](/python/docs/reference/cloudiot/0.3.3/google.cloud.iot_v1.types.PublicKeyFormat) \n\n PublicKeyFormat(value)\n\nThe supported formats for the public key.\n\nValues:\nUNSPECIFIED_PUBLIC_KEY_FORMAT (0):\nThe format has not been specified. This is an\ninvalid default value and must not be used.\nRSA_PEM (3):\nAn RSA public key encoded in base64, and wrapped by\n`-----BEGIN PUBLIC KEY-----` and\n`-----END PUBLIC KEY-----`. This can be used to verify\n`RS256` signatures in JWT tokens\n(`RFC7518 \u003chttps://www.ietf.org/rfc/rfc7518.txt\u003e`**).\nRSA_X509_PEM (1):\nAs RSA_PEM, but wrapped in an X.509v3 certificate\n(`RFC5280 \u003chttps://www.ietf.org/rfc/rfc5280.txt\u003e`** ),\nencoded in base64, and wrapped by\n`-----BEGIN CERTIFICATE-----` and\n`-----END CERTIFICATE-----`.\nES256_PEM (2):\nPublic key for the ECDSA algorithm using P-256 and SHA-256,\nencoded in base64, and wrapped by\n`-----BEGIN PUBLIC KEY-----` and\n`-----END PUBLIC KEY-----`. This can be used to verify JWT\ntokens with the `ES256` algorithm\n(`RFC7518 \u003chttps://www.ietf.org/rfc/rfc7518.txt\u003e`**). This\ncurve is defined in `OpenSSL \u003chttps://www.openssl.org/\u003e`**\nas the `prime256v1` curve.\nES256_X509_PEM (4):\nAs ES256_PEM, but wrapped in an X.509v3 certificate\n(`RFC5280 \u003chttps://www.ietf.org/rfc/rfc5280.txt\u003e`__),\nencoded in base64, and wrapped by\n`-----BEGIN CERTIFICATE-----` and\n`-----END CERTIFICATE-----`."]]