Class DeletedKey

java.lang.Object
com.azure.security.keyvault.keys.models.KeyVaultKey
com.azure.security.keyvault.keys.models.DeletedKey
All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultKey>

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

    • DeletedKey

      public DeletedKey()
      Creates a new instance of DeletedKey.
  • 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.
    • getKey

      public JsonWebKey getKey()
      Get the key value.
      Overrides:
      getKey in class KeyVaultKey
      Returns:
      the key value
    • toJson

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

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