KeyVaultProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.KeyVaultProperties

Implements

public final class KeyVaultProperties
implements JsonSerializable<KeyVaultProperties>

Properties of key vault.

Constructor Summary

Constructor Description
KeyVaultProperties()

Creates an instance of KeyVaultProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime currentVersionedKeyExpirationTimestamp()

Get the currentVersionedKeyExpirationTimestamp property: This is a read only property that represents the expiration time of the current version of the customer managed key used for encryption.

String currentVersionedKeyIdentifier()

Get the currentVersionedKeyIdentifier property: The object identifier of the current versioned Key Vault Key in use.

static KeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultProperties from the JsonReader.

String keyName()

Get the keyName property: The name of KeyVault key.

String keyVaultUri()

Get the keyVaultUri property: The Uri of KeyVault.

String keyVersion()

Get the keyVersion property: The version of KeyVault key.

OffsetDateTime lastKeyRotationTimestamp()

Get the lastKeyRotationTimestamp property: Timestamp of last rotation of the Key Vault Key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultProperties withKeyName(String keyName)

Set the keyName property: The name of KeyVault key.

KeyVaultProperties withKeyVaultUri(String keyVaultUri)

Set the keyVaultUri property: The Uri of KeyVault.

KeyVaultProperties withKeyVersion(String keyVersion)

Set the keyVersion property: The version of KeyVault key.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultProperties

public KeyVaultProperties()

Creates an instance of KeyVaultProperties class.

Method Details

currentVersionedKeyExpirationTimestamp

public OffsetDateTime currentVersionedKeyExpirationTimestamp()

Get the currentVersionedKeyExpirationTimestamp property: This is a read only property that represents the expiration time of the current version of the customer managed key used for encryption.

Returns:

the currentVersionedKeyExpirationTimestamp value.

currentVersionedKeyIdentifier

public String currentVersionedKeyIdentifier()

Get the currentVersionedKeyIdentifier property: The object identifier of the current versioned Key Vault Key in use.

Returns:

the currentVersionedKeyIdentifier value.

fromJson

public static KeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultProperties 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 KeyVaultProperties.

keyName

public String keyName()

Get the keyName property: The name of KeyVault key.

Returns:

the keyName value.

keyVaultUri

public String keyVaultUri()

Get the keyVaultUri property: The Uri of KeyVault.

Returns:

the keyVaultUri value.

keyVersion

public String keyVersion()

Get the keyVersion property: The version of KeyVault key.

Returns:

the keyVersion value.

lastKeyRotationTimestamp

public OffsetDateTime lastKeyRotationTimestamp()

Get the lastKeyRotationTimestamp property: Timestamp of last rotation of the Key Vault Key.

Returns:

the lastKeyRotationTimestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyName

public KeyVaultProperties withKeyName(String keyName)

Set the keyName property: The name of KeyVault key.

Parameters:

keyName - the keyName value to set.

Returns:

the KeyVaultProperties object itself.

withKeyVaultUri

public KeyVaultProperties withKeyVaultUri(String keyVaultUri)

Set the keyVaultUri property: The Uri of KeyVault.

Parameters:

keyVaultUri - the keyVaultUri value to set.

Returns:

the KeyVaultProperties object itself.

withKeyVersion

public KeyVaultProperties withKeyVersion(String keyVersion)

Set the keyVersion property: The version of KeyVault key.

Parameters:

keyVersion - the keyVersion value to set.

Returns:

the KeyVaultProperties object itself.

Applies to