Class DeletedSecret

java.lang.Object
com.azure.security.keyvault.secrets.models.KeyVaultSecret
com.azure.security.keyvault.secrets.models.DeletedSecret
All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultSecret>

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

    • DeletedSecret

      public DeletedSecret()
  • 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<KeyVaultSecret>
      Overrides:
      toJson in class KeyVaultSecret
      Throws:
      IOException
    • fromJson

      public static DeletedSecret fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DeletedSecret from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DeletedSecret if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the DeletedSecret.