Class KeyAndSecretDetails
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.KeyAndSecretDetails
-
public final class KeyAndSecretDetails extends Object
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
Constructors Constructor Description KeyAndSecretDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BekDetails
bekDetails()
Get the bekDetails property: BEK is bitlocker encryption key.String
encryptionMechanism()
Get the encryptionMechanism property: Encryption mechanism: None/ SinglePass/ DoublePass.KekDetails
kekDetails()
Get the kekDetails property: KEK is encryption key for BEK.void
validate()
Validates the instance.KeyAndSecretDetails
withBekDetails(BekDetails bekDetails)
Set the bekDetails property: BEK is bitlocker encryption key.KeyAndSecretDetails
withEncryptionMechanism(String encryptionMechanism)
Set the encryptionMechanism property: Encryption mechanism: None/ SinglePass/ DoublePass.KeyAndSecretDetails
withKekDetails(KekDetails kekDetails)
Set the kekDetails property: KEK is encryption key for BEK.
-
-
-
Method Detail
-
kekDetails
public KekDetails kekDetails()
Get the kekDetails property: KEK is encryption key for BEK.- Returns:
- the kekDetails value.
-
withKekDetails
public KeyAndSecretDetails withKekDetails(KekDetails kekDetails)
Set the kekDetails property: KEK is encryption key for BEK.- Parameters:
kekDetails
- the kekDetails value to set.- Returns:
- the KeyAndSecretDetails object itself.
-
bekDetails
public BekDetails bekDetails()
Get the bekDetails property: BEK is bitlocker encryption key.- Returns:
- the bekDetails value.
-
withBekDetails
public KeyAndSecretDetails withBekDetails(BekDetails bekDetails)
Set the bekDetails property: BEK is bitlocker encryption key.- Parameters:
bekDetails
- the bekDetails value to set.- Returns:
- the KeyAndSecretDetails object itself.
-
encryptionMechanism
public String encryptionMechanism()
Get the encryptionMechanism property: Encryption mechanism: None/ SinglePass/ DoublePass.- Returns:
- the encryptionMechanism value.
-
withEncryptionMechanism
public KeyAndSecretDetails withEncryptionMechanism(String encryptionMechanism)
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.
-
-