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
Fields Modifier and Type Field Description protected StringaadClientIdThe AAD client ID.protected StringaadSecretThe AAD secret.protected com.azure.core.management.AzureEnvironmentazureEnvironmentThe AzureEnvironment.protected StringencryptionAlgorithmThe encryption algorithm.protected StringkeyEncryptionKeyUrlThe key encryption key URL.protected StringkeyEncryptionKeyVaultIdThe key encryption key KeyVault ID.protected StringkeyVaultIdThe KeyVault ID.protected StringpassPhraseThe pass phrase.protected StringvaultUriThe KeyVault URI.protected DiskVolumeTypevolumeTypeThe volume type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedVirtualMachineEncryptionConfiguration(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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringaadClientId()StringaadSecret()StringkeyEncryptionKeyUrl()StringkeyEncryptionKeyVaultId()StringkeyVaultId()StringkeyVaultUrl()StringlinuxPassPhrase()abstract OperatingSystemTypesosType()StringvolumeEncryptionKeyEncryptAlgorithm()DiskVolumeTypevolumeType()TwithVolumeEncryptionKeyEncryptAlgorithm(String encryptionAlgorithm)Specifies the algorithm used to encrypt the disk-encryption key.TwithVolumeEncryptionKeyEncrypted(String keyEncryptionKeyUrl)Specifies the Key Vault URL to the key for protecting or wrapping the disk-encryption key.TwithVolumeEncryptionKeyEncrypted(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.TwithVolumeType(DiskVolumeType volumeType)Specifies the volume to encrypt.
-
-
-
Field Detail
-
keyVaultId
protected final String keyVaultId
The KeyVault ID.
-
aadClientId
protected final String aadClientId
The AAD client ID.
-
aadSecret
protected final String aadSecret
The AAD secret.
-
volumeType
protected DiskVolumeType volumeType
The volume type.
-
keyEncryptionKeyUrl
protected String keyEncryptionKeyUrl
The key encryption key URL.
-
keyEncryptionKeyVaultId
protected String keyEncryptionKeyVaultId
The key encryption key KeyVault ID.
-
encryptionAlgorithm
protected String encryptionAlgorithm
The encryption algorithm.
-
passPhrase
protected String passPhrase
The pass phrase.
-
azureEnvironment
protected final com.azure.core.management.AzureEnvironment azureEnvironment
The AzureEnvironment.
-
vaultUri
protected final String vaultUri
The KeyVault URI.
-
-
Constructor Detail
-
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 Detail
-
osType
public abstract OperatingSystemTypes osType()
- Returns:
- the operating system type
-
aadClientId
public String aadClientId()
- Returns:
- the AAD application client ID to access the key vault
-
aadSecret
public String aadSecret()
- Returns:
- the AAD application client secret to access the key vault
-
volumeType
public DiskVolumeType volumeType()
- Returns:
- type of the volume to perform encryption operation
-
keyVaultId
public String keyVaultId()
- Returns:
- resource ID of the key vault to store the disk encryption key
-
keyVaultUrl
public String keyVaultUrl()
- Returns:
- URL to the key vault to store the disk encryption key
-
keyEncryptionKeyVaultId
public String keyEncryptionKeyVaultId()
- Returns:
- resource ID of the Key Vault holding key encryption key (KEK)
-
keyEncryptionKeyUrl
public String keyEncryptionKeyUrl()
- Returns:
- key vault URL to the key (KEK) to protect (encrypt) the disk-encryption key
-
volumeEncryptionKeyEncryptAlgorithm
public String volumeEncryptionKeyEncryptAlgorithm()
- Returns:
- the algorithm used to encrypt the disk-encryption key
-
linuxPassPhrase
public String linuxPassPhrase()
- Returns:
- the pass phrase to encrypt Linux OS and data disks
-
withVolumeType
public T withVolumeType(DiskVolumeType volumeType)
Specifies the volume to encrypt.- Parameters:
volumeType- the volume type- Returns:
- VirtualMachineEncryptionConfiguration
-
withVolumeEncryptionKeyEncrypted
public T withVolumeEncryptionKeyEncrypted(String keyEncryptionKeyUrl)
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
-
-