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>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeletedKey
fromJson
(com.azure.json.JsonReader jsonReader) Reads a JSON stream into aDeletedKey
.Get the deleted UTC time.getKey()
Get the key value.Get the recoveryId identifier.Get the scheduled purge UTC time.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.security.keyvault.keys.models.KeyVaultKey
getId, getKeyOperations, getKeyType, getName, getProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeletedKey
public DeletedKey()Creates a new instance ofDeletedKey
.
-
-
Method Details
-
getRecoveryId
Get the recoveryId identifier.- Returns:
- the recoveryId identifier.
-
getScheduledPurgeDate
Get the scheduled purge UTC time.- Returns:
- the scheduledPurgeDate UTC time.
-
getDeletedOn
Get the deleted UTC time.- Returns:
- the deletedDate UTC time.
-
getKey
Get the key value.- Overrides:
getKey
in classKeyVaultKey
- Returns:
- the key value
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<KeyVaultKey>
- Overrides:
toJson
in classKeyVaultKey
- Throws:
IOException
-
fromJson
Reads a JSON stream into aDeletedKey
.- Parameters:
jsonReader
- TheJsonReader
being read.- Returns:
- An instance of
DeletedKey
that the JSON stream represented, may return null. - Throws:
IOException
- If aDeletedKey
fails to be read from thejsonReader
.
-