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>
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeletedSecret
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance ofDeletedSecret
from the JsonReader.Get the deleted UTC time.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.secrets.models.KeyVaultSecret
getId, getName, getProperties, getValue, setProperties
-
Constructor Details
-
DeletedSecret
public DeletedSecret()
-
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<KeyVaultSecret>
- Overrides:
toJson
in classKeyVaultSecret
- Throws:
IOException
-
fromJson
Reads an instance ofDeletedSecret
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 theDeletedSecret
.
-