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 TypeMethodDescriptionGets the AAD application client ID to access the key vault.Gets the AAD application client secret to access the key vault.Gets key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key.Gets resource ID of the Key Vault holding key encryption key (KEK).Gets resource ID of the key vault to store the disk encryption key.Gets URL to the key vault to store the disk encryption key.Gets the pass phrase to encrypt Linux OS and data disks.abstract OperatingSystemTypesosType()Gets the operating system type.Gets the algorithm used to encrypt the disk-encryption key.Gets type of the volume to perform encryption operation.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
Gets the operating system type.- Returns:
- the operating system type
-
aadClientId
Gets the AAD application client ID to access the key vault.- Returns:
- the AAD application client ID to access the key vault
-
aadSecret
Gets the AAD application client secret to access the key vault.- Returns:
- the AAD application client secret to access the key vault
-
volumeType
Gets type of the volume to perform encryption operation.- Returns:
- type of the volume to perform encryption operation
-
keyVaultId
Gets resource ID of the key vault to store the disk encryption key.- Returns:
- resource ID of the key vault to store the disk encryption key
-
keyVaultUrl
Gets URL to the key vault to store the disk encryption key.- Returns:
- URL to the key vault to store the disk encryption key
-
keyEncryptionKeyVaultId
Gets resource ID of the Key Vault holding key encryption key (KEK).- Returns:
- resource ID of the Key Vault holding key encryption key (KEK)
-
keyEncryptionKeyUrl
Gets key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key.- Returns:
- key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key
-
volumeEncryptionKeyEncryptAlgorithm
Gets the algorithm used to encrypt the disk-encryption key.- Returns:
- the algorithm used to encrypt the disk-encryption key
-
linuxPassPhrase
Gets the pass phrase to encrypt Linux OS and data disks.- 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
-
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
-