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 KeyVaultKey
getId, getKeyOperations, getKeyType, getName, getPropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeletedKey
public DeletedKey()Creates a new instance ofDeletedKey.
-
-
Method Details
-
getRecoveryId
-
getScheduledPurgeDate
Get the scheduled purge UTC time.- Returns:
- the scheduledPurgeDate UTC time.
-
getDeletedOn
-
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.
-