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 DeletedKeyfromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.security.keyvault.keys.models.KeyVaultKey
getId, getKeyOperations, getKeyType, getName, getProperties
-
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:
getKeyin classKeyVaultKey- Returns:
- the key value
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultKey>- Overrides:
toJsonin classKeyVaultKey- Throws:
IOException
-
fromJson
Reads a JSON stream into aDeletedKey.- Parameters:
jsonReader- TheJsonReaderbeing read.- Returns:
- An instance of
DeletedKeythat the JSON stream represented, may return null. - Throws:
IOException- If aDeletedKeyfails to be read from thejsonReader.
-