Class KeyEncryptionKey

java.lang.Object
com.azure.resourcemanager.databox.models.KeyEncryptionKey

public final class KeyEncryptionKey extends Object
Encryption key containing details about key to encrypt different keys.
  • Constructor Details

    • KeyEncryptionKey

      public KeyEncryptionKey()
      Creates an instance of KeyEncryptionKey class.
  • Method Details

    • kekType

      public KekType kekType()
      Get the kekType property: Type of encryption key used for key encryption.
      Returns:
      the kekType value.
    • withKekType

      public KeyEncryptionKey withKekType(KekType kekType)
      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

      public IdentityProperties identityProperties()
      Get the identityProperties property: Managed identity properties used for key encryption.
      Returns:
      the identityProperties value.
    • withIdentityProperties

      public KeyEncryptionKey withIdentityProperties(IdentityProperties identityProperties)
      Set the identityProperties property: Managed identity properties used for key encryption.
      Parameters:
      identityProperties - the identityProperties value to set.
      Returns:
      the KeyEncryptionKey object itself.
    • kekUrl

      public String kekUrl()
      Get the kekUrl property: Key encryption key. It is required in case of Customer managed KekType.
      Returns:
      the kekUrl value.
    • withKekUrl

      public KeyEncryptionKey withKekUrl(String kekUrl)
      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

      public String kekVaultResourceId()
      Get the kekVaultResourceId property: Kek vault resource id. It is required in case of Customer managed KekType.
      Returns:
      the kekVaultResourceId value.
    • withKekVaultResourceId

      public KeyEncryptionKey withKekVaultResourceId(String kekVaultResourceId)
      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.