Class VirtualMachineEncryptionConfiguration<T extends VirtualMachineEncryptionConfiguration<T>>
java.lang.Object
com.microsoft.azure.management.compute.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
-
Constructor Summary
ModifierConstructorDescriptionprotected
VirtualMachineEncryptionConfiguration
(String keyVaultId, String vaultUri, com.microsoft.azure.AzureEnvironment azureEnvironment) Creates VirtualMachineEncryptionConfiguration.protected
VirtualMachineEncryptionConfiguration
(String keyVaultId, String vaultUri, String aadClientId, String aadSecret, com.microsoft.azure.AzureEnvironment azureEnvironment) Creates VirtualMachineEncryptionConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionabstract OperatingSystemTypes
osType()
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
-
aadClientId
-
aadSecret
-
volumeType
-
keyEncryptionKeyURL
-
keyEncryptionKeyVaultId
-
encryptionAlgorithm
-
passPhrase
-
azureEnvironment
protected final com.microsoft.azure.AzureEnvironment azureEnvironment -
vaultUri
-
-
Constructor Details
-
VirtualMachineEncryptionConfiguration
protected VirtualMachineEncryptionConfiguration(String keyVaultId, String vaultUri, String aadClientId, String aadSecret, com.microsoft.azure.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.microsoft.azure.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
-