Enum ContentValidationAlgorithm

java.lang.Object
java.lang.Enum<ContentValidationAlgorithm>
com.azure.storage.common.ContentValidationAlgorithm
All Implemented Interfaces:
Serializable, Comparable<ContentValidationAlgorithm>, java.lang.constant.Constable

public enum ContentValidationAlgorithm extends Enum<ContentValidationAlgorithm>
Algorithm for content validation on upload and download operations. When enabled, the SDK computes checksums and validates content integrity using the selected algorithm. Content validation is off by default.

Supported in Azure Storage Blob, Data Lake, and File Share packages for methods that use APIs supporting transactional CRC64, or structured message format.

  • Enum Constant Details

    • NONE

      public static final ContentValidationAlgorithm NONE
      No content validation. This is the default; no checksum is computed or validated.
    • AUTO

      public static final ContentValidationAlgorithm AUTO
      Allow the SDK to choose the validation algorithm. Currently resolves to CRC64 where supported. Different library versions may make different choices. The resolution may change in the future. Please set an explicit algorithm if you need a specific behavior.
    • CRC64

      public static final ContentValidationAlgorithm CRC64
      Azure Storage custom 64-bit CRC. The SDK computes and validates CRC64 checksums for the transfer.
  • Method Details

    • values

      public static ContentValidationAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ContentValidationAlgorithm valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null