Class KeyAndSecretDetails
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.KeyAndSecretDetails
BEK is bitlocker key. KEK is encryption key for BEK If the VM was encrypted then we will store following details : 1.
Secret(BEK) - Url + Backup Data + vaultId. 2. Key(KEK) - Url + Backup Data + vaultId. 3. EncryptionMechanism BEK and
KEK can potentially have different vault ids.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the bekDetails property: BEK is bitlocker encryption key.Get the encryptionMechanism property: Encryption mechanism: None/ SinglePass/ DoublePass.Get the kekDetails property: KEK is encryption key for BEK.void
validate()
Validates the instance.withBekDetails
(BekDetails bekDetails) Set the bekDetails property: BEK is bitlocker encryption key.withEncryptionMechanism
(String encryptionMechanism) Set the encryptionMechanism property: Encryption mechanism: None/ SinglePass/ DoublePass.withKekDetails
(KekDetails kekDetails) Set the kekDetails property: KEK is encryption key for BEK.
-
Constructor Details
-
KeyAndSecretDetails
public KeyAndSecretDetails()Creates an instance of KeyAndSecretDetails class.
-
-
Method Details
-
kekDetails
Get the kekDetails property: KEK is encryption key for BEK.- Returns:
- the kekDetails value.
-
withKekDetails
Set the kekDetails property: KEK is encryption key for BEK.- Parameters:
kekDetails
- the kekDetails value to set.- Returns:
- the KeyAndSecretDetails object itself.
-
bekDetails
Get the bekDetails property: BEK is bitlocker encryption key.- Returns:
- the bekDetails value.
-
withBekDetails
Set the bekDetails property: BEK is bitlocker encryption key.- Parameters:
bekDetails
- the bekDetails value to set.- Returns:
- the KeyAndSecretDetails object itself.
-
encryptionMechanism
Get the encryptionMechanism property: Encryption mechanism: None/ SinglePass/ DoublePass.- Returns:
- the encryptionMechanism value.
-
withEncryptionMechanism
Set the encryptionMechanism property: Encryption mechanism: None/ SinglePass/ DoublePass.- Parameters:
encryptionMechanism
- the encryptionMechanism value to set.- Returns:
- the KeyAndSecretDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-