Class AsymmetricEncryptedSecret

java.lang.Object
com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret

public final class AsymmetricEncryptedSecret extends Object
Represent the secrets intended for encryption with asymmetric key pair.
  • Constructor Details

    • AsymmetricEncryptedSecret

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

    • value

      public String value()
      Get the value property: The value of the secret.
      Returns:
      the value value.
    • withValue

      public AsymmetricEncryptedSecret withValue(String value)
      Set the value property: The value of the secret.
      Parameters:
      value - the value value to set.
      Returns:
      the AsymmetricEncryptedSecret object itself.
    • encryptionCertThumbprint

      public String encryptionCertThumbprint()
      Get the encryptionCertThumbprint property: Thumbprint certificate used to encrypt \"Value\". If the value is unencrypted, it will be null.
      Returns:
      the encryptionCertThumbprint value.
    • withEncryptionCertThumbprint

      public AsymmetricEncryptedSecret withEncryptionCertThumbprint(String encryptionCertThumbprint)
      Set the encryptionCertThumbprint property: Thumbprint certificate used to encrypt \"Value\". If the value is unencrypted, it will be null.
      Parameters:
      encryptionCertThumbprint - the encryptionCertThumbprint value to set.
      Returns:
      the AsymmetricEncryptedSecret object itself.
    • encryptionAlgorithm

      public EncryptionAlgorithm encryptionAlgorithm()
      Get the encryptionAlgorithm property: The algorithm used to encrypt "Value".
      Returns:
      the encryptionAlgorithm value.
    • withEncryptionAlgorithm

      public AsymmetricEncryptedSecret withEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
      Set the encryptionAlgorithm property: The algorithm used to encrypt "Value".
      Parameters:
      encryptionAlgorithm - the encryptionAlgorithm value to set.
      Returns:
      the AsymmetricEncryptedSecret object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.