google.cloud.iot_v1.types.PublicKeyCredential
A public key used to verify the signature of
JSON Web Tokens (JWTs). When adding a new device
credential, either via device creation or via
modifications, this public key credential may be
required to be signed by one of the registry
level certificates. More specifically, if the
registry contains at least one certificate, any
new device credential must be signed by one of
the registry certificates. As a result, when the
registry contains certificates, only X.509
certificates are accepted as device credentials.
However, if the registry does not contain a
certificate, self-signed certificates and public
keys will be accepted. New device credentials
must be different from every registry-level
certificate.
This field is a member of oneof_ credential.
expiration_time
google.protobuf.timestamp_pb2.Timestamp
[Optional] The time at which this credential becomes
invalid. This credential will be ignored for new client
authentication requests after this timestamp; however, it
will not be automatically deleted.
[[["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 DeviceCredential (2.9.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.9.2 (latest)](/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.DeviceCredential)\n- [2.9.1](/python/docs/reference/cloudiot/2.9.1/google.cloud.iot_v1.types.DeviceCredential)\n- [2.8.1](/python/docs/reference/cloudiot/2.8.1/google.cloud.iot_v1.types.DeviceCredential)\n- [2.7.0](/python/docs/reference/cloudiot/2.7.0/google.cloud.iot_v1.types.DeviceCredential)\n- [2.6.4](/python/docs/reference/cloudiot/2.6.4/google.cloud.iot_v1.types.DeviceCredential)\n- [2.5.1](/python/docs/reference/cloudiot/2.5.1/google.cloud.iot_v1.types.DeviceCredential)\n- [2.4.1](/python/docs/reference/cloudiot/2.4.1/google.cloud.iot_v1.types.DeviceCredential)\n- [2.3.0](/python/docs/reference/cloudiot/2.3.0/google.cloud.iot_v1.types.DeviceCredential)\n- [2.2.1](/python/docs/reference/cloudiot/2.2.1/google.cloud.iot_v1.types.DeviceCredential)\n- [2.1.0](/python/docs/reference/cloudiot/2.1.0/google.cloud.iot_v1.types.DeviceCredential)\n- [2.0.2](/python/docs/reference/cloudiot/2.0.2/google.cloud.iot_v1.types.DeviceCredential)\n- [1.0.2](/python/docs/reference/cloudiot/1.0.2/google.cloud.iot_v1.types.DeviceCredential)\n- [0.3.3](/python/docs/reference/cloudiot/0.3.3/google.cloud.iot_v1.types.DeviceCredential) \n\n DeviceCredential(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nA server-stored device credential used for authentication.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]