Class KeyEncryptionKey
java.lang.Object
com.azure.resourcemanager.databox.models.KeyEncryptionKey
Encryption key containing details about key to encrypt different keys.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the identityProperties property: Managed identity properties used for key encryption.kekType()
Get the kekType property: Type of encryption key used for key encryption.kekUrl()
Get the kekUrl property: Key encryption key.Get the kekVaultResourceId property: Kek vault resource id.void
validate()
Validates the instance.withIdentityProperties
(IdentityProperties identityProperties) Set the identityProperties property: Managed identity properties used for key encryption.withKekType
(KekType kekType) Set the kekType property: Type of encryption key used for key encryption.withKekUrl
(String kekUrl) Set the kekUrl property: Key encryption key.withKekVaultResourceId
(String kekVaultResourceId) Set the kekVaultResourceId property: Kek vault resource id.
-
Constructor Details
-
KeyEncryptionKey
public KeyEncryptionKey()Creates an instance of KeyEncryptionKey class.
-
-
Method Details
-
kekType
Get the kekType property: Type of encryption key used for key encryption.- Returns:
- the kekType value.
-
withKekType
Set the kekType property: Type of encryption key used for key encryption.- Parameters:
kekType
- the kekType value to set.- Returns:
- the KeyEncryptionKey object itself.
-
identityProperties
Get the identityProperties property: Managed identity properties used for key encryption.- Returns:
- the identityProperties value.
-
withIdentityProperties
Set the identityProperties property: Managed identity properties used for key encryption.- Parameters:
identityProperties
- the identityProperties value to set.- Returns:
- the KeyEncryptionKey object itself.
-
kekUrl
Get the kekUrl property: Key encryption key. It is required in case of Customer managed KekType.- Returns:
- the kekUrl value.
-
withKekUrl
Set the kekUrl property: Key encryption key. It is required in case of Customer managed KekType.- Parameters:
kekUrl
- the kekUrl value to set.- Returns:
- the KeyEncryptionKey object itself.
-
kekVaultResourceId
Get the kekVaultResourceId property: Kek vault resource id. It is required in case of Customer managed KekType.- Returns:
- the kekVaultResourceId value.
-
withKekVaultResourceId
Set the kekVaultResourceId property: Kek vault resource id. It is required in case of Customer managed KekType.- Parameters:
kekVaultResourceId
- the kekVaultResourceId value to set.- Returns:
- the KeyEncryptionKey object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-