Class KeyVaultProperties
java.lang.Object
com.azure.resourcemanager.batch.models.KeyVaultProperties
KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the keyIdentifier property: Full path to the versioned secret.void
validate()
Validates the instance.withKeyIdentifier
(String keyIdentifier) Set the keyIdentifier property: Full path to the versioned secret.
-
Constructor Details
-
KeyVaultProperties
public KeyVaultProperties()Creates an instance of KeyVaultProperties class.
-
-
Method Details
-
keyIdentifier
Get the keyIdentifier property: Full path to the versioned secret. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. To be usable the following prerequisites must be met:The Batch Account has a System Assigned identity The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions The KeyVault has soft-delete and purge protection enabled.
- Returns:
- the keyIdentifier value.
-
withKeyIdentifier
Set the keyIdentifier property: Full path to the versioned secret. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. To be usable the following prerequisites must be met:The Batch Account has a System Assigned identity The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions The KeyVault has soft-delete and purge protection enabled.
- Parameters:
keyIdentifier
- the keyIdentifier value to set.- Returns:
- the KeyVaultProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-