Package io.minio

Enum Class Checksum.Algorithm

java.lang.Object
java.lang.Enum<Checksum.Algorithm>
io.minio.Checksum.Algorithm
All Implemented Interfaces:
Serializable, Comparable<Checksum.Algorithm>, java.lang.constant.Constable
Enclosing class:
Checksum

public static enum Checksum.Algorithm extends Enum<Checksum.Algorithm>
Checksum algorithm.
  • Enum Constant Details

  • Method Details

    • values

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

      public static Checksum.Algorithm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Converts this algorithm to string.
      Overrides:
      toString in class Enum<Checksum.Algorithm>
    • header

      public String header()
      Gets HTTP header key for this algorithm.
    • fullObjectSupport

      public boolean fullObjectSupport()
      Returns whether this algorithm supports full object checksum.
    • compositeSupport

      public boolean compositeSupport()
      Returns whether this algorithm supports composite object checksum.
    • validate

      public void validate(Checksum.Type type)
      Validates this algorithm for the specified type.
    • hasher

      public Checksum.Hasher hasher() throws MinioException
      Gets hasher for this algorithm.
      Throws:
      MinioException