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 Details

    • getPrimaryThumbprint

      public String getPrimaryThumbprint()
      Get the primaryThumbprint property: Primary thumbprint for the x509 certificate.
      Returns:
      the primaryThumbprint value.
    • getSecondaryThumbprint

      public String getSecondaryThumbprint()
      Get the secondaryThumbprint property: Secondary thumbprint for the x509 certificate.
      Returns:
      the secondaryThumbprint value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.