Class DeviceTwinInfoX509Thumbprint
java.lang.Object
com.azure.messaging.eventgrid.systemevents.DeviceTwinInfoX509Thumbprint
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeviceTwinInfoX509Thumbprint>
public final class DeviceTwinInfoX509Thumbprint
extends Object
implements com.azure.json.JsonSerializable<DeviceTwinInfoX509Thumbprint>
The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a
certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in
the certificate.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceTwinInfoX509ThumbprintfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeviceTwinInfoX509Thumbprint from the JsonReader.Get the primaryThumbprint property: Primary thumbprint for the x509 certificate.Get the secondaryThumbprint property: Secondary thumbprint for the x509 certificate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getPrimaryThumbprint
Get the primaryThumbprint property: Primary thumbprint for the x509 certificate.- Returns:
- the primaryThumbprint value.
-
getSecondaryThumbprint
Get the secondaryThumbprint property: Secondary thumbprint for the x509 certificate.- Returns:
- the secondaryThumbprint value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeviceTwinInfoX509Thumbprint>- Throws:
IOException
-
fromJson
public static DeviceTwinInfoX509Thumbprint fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeviceTwinInfoX509Thumbprint from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeviceTwinInfoX509Thumbprint if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DeviceTwinInfoX509Thumbprint.
-