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). This curve is
defined in OpenSSL as the prime256v1 curve.
Es256X509Pem
As ES256_PEM, but wrapped in an X.509v3 certificate (RFC5280), encoded in base64, and wrapped by
-----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----.
RsaPem
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).
RsaX509Pem
As RSA_PEM, but wrapped in an X.509v3 certificate (RFC5280), encoded in base64, and wrapped by
-----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----.
UnspecifiedPublicKeyFormat
The format has not been specified. This is an invalid default value and
must not be used.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003ePublicKeyFormat\u003c/code\u003e enum for the Cloud IoT v1 API, specifying the valid formats for public keys.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for the API is 2.2.0, and the enum is located within the \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThere are four valid public key formats: \u003ccode\u003eEs256Pem\u003c/code\u003e, \u003ccode\u003eEs256X509Pem\u003c/code\u003e, \u003ccode\u003eRsaPem\u003c/code\u003e, and \u003ccode\u003eRsaX509Pem\u003c/code\u003e, each with distinct encoding and usage guidelines, in addition to the invalid \u003ccode\u003eUnspecifiedPublicKeyFormat\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEs256Pem\u003c/code\u003e and \u003ccode\u003eRsaPem\u003c/code\u003e formats are encoded in base64 and are wrapped by \u003ccode\u003e-----BEGIN PUBLIC KEY-----\u003c/code\u003e and \u003ccode\u003e-----END PUBLIC KEY-----\u003c/code\u003e whereas, \u003ccode\u003eEs256X509Pem\u003c/code\u003e and \u003ccode\u003eRsaX509Pem\u003c/code\u003e are additionally wrapped in an X.509v3 certificate.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Enum PublicKeyFormat (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.PublicKeyFormat)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.PublicKeyFormat)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.PublicKeyFormat)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.PublicKeyFormat)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.PublicKeyFormat)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.PublicKeyFormat) \n\n public enum PublicKeyFormat\n\nReference documentation and code samples for the Cloud IoT v1 API enum PublicKeyFormat.\n\nThe supported formats for the public key.\n\nNamespace\n---------\n\n[Google.Cloud.Iot.V1](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Iot.V1.dll"]]