public sealed class RegistryCredential : IMessage<RegistryCredential>, IEquatable<RegistryCredential>, IDeepCloneable<RegistryCredential>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class RegistryCredential.
A server-stored registry credential used to validate device credentials.
[[["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\u003eThe \u003ccode\u003eRegistryCredential\u003c/code\u003e class in the Google Cloud IoT v1 API is used to manage server-stored credentials for validating device credentials.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Iot.V1.dll\u003c/code\u003e assembly, and is currently on version 2.2.0, which is the most up to date version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRegistryCredential\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two constructors: a default constructor and one that accepts another \u003ccode\u003eRegistryCredential\u003c/code\u003e instance as a parameter for cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRegistryCredential\u003c/code\u003e class has a \u003ccode\u003ePublicKeyCertificate\u003c/code\u003e property and a \u003ccode\u003eCredentialCase\u003c/code\u003e property, which are key to configuring device credentials and certificate verification.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class RegistryCredential (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.RegistryCredential)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.RegistryCredential)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.RegistryCredential)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.RegistryCredential)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.RegistryCredential)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.RegistryCredential) \n\n public sealed class RegistryCredential : IMessage\u003cRegistryCredential\u003e, IEquatable\u003cRegistryCredential\u003e, IDeepCloneable\u003cRegistryCredential\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class RegistryCredential.\n\nA server-stored registry credential used to validate device credentials. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RegistryCredential \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RegistryCredential](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.RegistryCredential), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RegistryCredential](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.RegistryCredential), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RegistryCredential](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.RegistryCredential), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\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\n\nConstructors\n------------\n\n### RegistryCredential()\n\n public RegistryCredential()\n\n### RegistryCredential(RegistryCredential)\n\n public RegistryCredential(RegistryCredential other)\n\nProperties\n----------\n\n### CredentialCase\n\n public RegistryCredential.CredentialOneofCase CredentialCase { get; }\n\n### PublicKeyCertificate\n\n public PublicKeyCertificate PublicKeyCertificate { get; set; }\n\nA public key certificate used to verify the device credentials."]]