Class KeyVaultProperties
java.lang.Object
com.azure.resourcemanager.batch.models.KeyVaultProperties
KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the keyIdentifier property: Full path to the secret with or without version.voidvalidate()Validates the instance.withKeyIdentifier(String keyIdentifier) Set the keyIdentifier property: Full path to the secret with or without version.
-
Constructor Details
-
KeyVaultProperties
public KeyVaultProperties()Creates an instance of KeyVaultProperties class.
-
-
Method Details
-
keyIdentifier
Get the keyIdentifier property: Full path to the secret with or without version. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. or https://mykeyvault.vault.azure.net/keys/testkey. 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 secret with or without version. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. or https://mykeyvault.vault.azure.net/keys/testkey. 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.
-