DeletedKey Class

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

Constructor Summary

Constructor Description
DeletedKey()

Creates a new instance of DeletedKey.

Method Summary

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

Reads a JSON stream into a DeletedKey.

OffsetDateTime getDeletedOn()

Get the deleted UTC time.

JsonWebKey getKey()

Get the key value.

String getRecoveryId()

Get the recoveryId identifier.

OffsetDateTime getScheduledPurgeDate()

Get the scheduled purge UTC time.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from KeyVaultKey

Methods inherited from java.lang.Object

Constructor Details

DeletedKey

public DeletedKey()

Creates a new instance of DeletedKey.

Method Details

fromJson

public static DeletedKey fromJson(JsonReader jsonReader)

Reads a JSON stream into a DeletedKey.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeletedKey that the JSON stream represented, may return null.

Throws:

IOException

- If a DeletedKey fails to be read from the jsonReader.

getDeletedOn

public OffsetDateTime getDeletedOn()

Get the deleted UTC time.

Returns:

the deletedDate UTC time.

getKey

public JsonWebKey getKey()

Get the key value.

Overrides:

DeletedKey.getKey()

Returns:

the key value

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:

DeletedKey.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to