Class DeletedCertificate

All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultCertificate>

public final class DeletedCertificate extends KeyVaultCertificateWithPolicy
Deleted Certificate is the resource consisting of name, recovery id, deleted date, scheduled purge date and its attributes inherited from KeyVaultCertificate. It is managed by Certificate Service.
See Also:
  • Constructor Details

    • DeletedCertificate

      public DeletedCertificate()
      Creates an instance of DeletedCertificate.
  • Method Details

    • getRecoveryId

      public String getRecoveryId()
      Get the recoveryId identifier.
      Returns:
      the recoveryId identifier.
    • getScheduledPurgeDate

      public OffsetDateTime getScheduledPurgeDate()
      Get the scheduled purge UTC time.
      Returns:
      the scheduledPurgeDate UTC time.
    • getDeletedOn

      public OffsetDateTime getDeletedOn()
      Get the deleted UTC time.
      Returns:
      the deletedDate UTC time.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KeyVaultCertificate>
      Overrides:
      toJson in class KeyVaultCertificateWithPolicy
      Throws:
      IOException
    • fromJson

      public static DeletedCertificate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads a JSON stream into a DeletedCertificate.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      The DeletedCertificate that the JSON stream represented, may return null.
      Throws:
      IOException - If a DeletedCertificate fails to be read from the jsonReader.