DeletedSecret Class

public final class DeletedSecret
extends 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.

Constructor Summary

Constructor Description
DeletedSecret()

Method Summary

Modifier and Type Method and Description
static DeletedSecret fromJson(JsonReader jsonReader)

Reads an instance of DeletedSecret from the JsonReader.

OffsetDateTime getDeletedOn()

Get the deleted UTC time.

String getRecoveryId()

Get the recoveryId identifier.

OffsetDateTime getScheduledPurgeDate()

Get the scheduled purge UTC time.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from KeyVaultSecret

Methods inherited from java.lang.Object

Constructor Details

DeletedSecret

public DeletedSecret()

Method Details

fromJson

public static DeletedSecret fromJson(JsonReader jsonReader)

Reads an instance of DeletedSecret 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 the DeletedSecret.

getDeletedOn

public OffsetDateTime getDeletedOn()

Get the deleted UTC time.

Returns:

the deletedDate UTC time.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DeletedSecret.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to