Class VirtualMachineEncryptionConfiguration<T extends VirtualMachineEncryptionConfiguration<T>>
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineEncryptionConfiguration<T>
- Type Parameters:
T- type presenting Windows or Linux specific settings
- Direct Known Subclasses:
LinuxVMDiskEncryptionConfiguration,WindowsVMDiskEncryptionConfiguration
public abstract class VirtualMachineEncryptionConfiguration<T extends VirtualMachineEncryptionConfiguration<T>>
extends Object
Type representing encryption configuration to be applied to a virtual machine.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe AAD client ID.protected final StringThe AAD secret.protected final com.azure.core.management.AzureEnvironmentThe AzureEnvironment.protected StringThe encryption algorithm.protected StringThe key encryption key URL.protected StringThe key encryption key KeyVault ID.protected final StringThe KeyVault ID.protected StringThe pass phrase.protected final StringThe KeyVault URI.protected DiskVolumeTypeThe volume type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVirtualMachineEncryptionConfiguration(String keyVaultId, String vaultUri, com.azure.core.management.AzureEnvironment azureEnvironment) Creates VirtualMachineEncryptionConfiguration.protectedVirtualMachineEncryptionConfiguration(String keyVaultId, String vaultUri, String aadClientId, String aadSecret, com.azure.core.management.AzureEnvironment azureEnvironment) Creates VirtualMachineEncryptionConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionabstract OperatingSystemTypesosType()withVolumeEncryptionKeyEncryptAlgorithm(String encryptionAlgorithm) Specifies the algorithm used to encrypt the disk-encryption key.withVolumeEncryptionKeyEncrypted(String keyEncryptionKeyUrl) Specifies the Key Vault URL to the key for protecting or wrapping the disk-encryption key.withVolumeEncryptionKeyEncrypted(String keyEncryptionKeyUrl, String keyEncryptionKeyKevVaultId) Specifies the and key vault Id and a vault URL to the key for protecting or wrapping the disk-encryption key.withVolumeType(DiskVolumeType volumeType) Specifies the volume to encrypt.
-
Field Details
-
keyVaultId
The KeyVault ID. -
aadClientId
The AAD client ID. -
aadSecret
The AAD secret. -
volumeType
The volume type. -
keyEncryptionKeyUrl
The key encryption key URL. -
keyEncryptionKeyVaultId
The key encryption key KeyVault ID. -
encryptionAlgorithm
The encryption algorithm. -
passPhrase
The pass phrase. -
azureEnvironment
protected final com.azure.core.management.AzureEnvironment azureEnvironmentThe AzureEnvironment. -
vaultUri
The KeyVault URI.
-
-
Constructor Details
-
VirtualMachineEncryptionConfiguration
protected VirtualMachineEncryptionConfiguration(String keyVaultId, String vaultUri, String aadClientId, String aadSecret, com.azure.core.management.AzureEnvironment azureEnvironment) Creates VirtualMachineEncryptionConfiguration.- Parameters:
keyVaultId- resource ID of the KeyVault to store the disk encryption keyvaultUri- URI of the key vault data-plane endpointaadClientId- AAD application client ID to access the KeyVaultaadSecret- AAD application client secret to access the KeyVaultazureEnvironment- Azure environment
-
VirtualMachineEncryptionConfiguration
protected VirtualMachineEncryptionConfiguration(String keyVaultId, String vaultUri, com.azure.core.management.AzureEnvironment azureEnvironment) Creates VirtualMachineEncryptionConfiguration.- Parameters:
keyVaultId- resource ID of the KeyVault to store the disk encryption keyvaultUri- URI of the key vault data-plane endpointazureEnvironment- Azure environment
-
-
Method Details
-
osType
- Returns:
- the operating system type
-
aadClientId
- Returns:
- the AAD application client ID to access the key vault
-
aadSecret
- Returns:
- the AAD application client secret to access the key vault
-
volumeType
- Returns:
- type of the volume to perform encryption operation
-
keyVaultId
- Returns:
- resource ID of the key vault to store the disk encryption key
-
keyVaultUrl
- Returns:
- URL to the key vault to store the disk encryption key
-
keyEncryptionKeyVaultId
- Returns:
- resource ID of the Key Vault holding key encryption key (KEK)
-
keyEncryptionKeyUrl
- Returns:
- key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key
-
volumeEncryptionKeyEncryptAlgorithm
- Returns:
- the algorithm used to encrypt the disk-encryption key
-
linuxPassPhrase
- Returns:
- the pass phrase to encrypt Linux OS and data disks
-
withVolumeType
Specifies the volume to encrypt.- Parameters:
volumeType- the volume type- Returns:
- VirtualMachineEncryptionConfiguration
-
withVolumeEncryptionKeyEncrypted
Specifies the Key Vault URL to the key for protecting or wrapping the disk-encryption key.- Parameters:
keyEncryptionKeyUrl- the key (KEK) URL- Returns:
- VirtualMachineEncryptionConfiguration
-
withVolumeEncryptionKeyEncrypted
public T withVolumeEncryptionKeyEncrypted(String keyEncryptionKeyUrl, String keyEncryptionKeyKevVaultId) Specifies the and key vault Id and a vault URL to the key for protecting or wrapping the disk-encryption key.- Parameters:
keyEncryptionKeyUrl- the key (KEK) URLkeyEncryptionKeyKevVaultId- resource ID of the keyVault storing KEK- Returns:
- VirtualMachineEncryptionConfiguration
-
withVolumeEncryptionKeyEncryptAlgorithm
Specifies the algorithm used to encrypt the disk-encryption key.- Parameters:
encryptionAlgorithm- the algorithm- Returns:
- VirtualMachineEncryptionConfiguration
-