Package io.minio
Enum Class Checksum.Algorithm
- All Implemented Interfaces:
Serializable,Comparable<Checksum.Algorithm>,java.lang.constant.Constable
- Enclosing class:
- Checksum
Checksum algorithm.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this algorithm supports composite object checksum.booleanReturns whether this algorithm supports full object checksum.hasher()Gets hasher for this algorithm.header()Gets HTTP header key for this algorithm.toString()Converts this algorithm to string.voidvalidate(Checksum.Type type) Validates this algorithm for the specified type.static Checksum.AlgorithmReturns the enum constant of this class with the specified name.static Checksum.Algorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CRC32
-
CRC32C
-
CRC64NVME
-
SHA1
-
SHA256
-
MD5
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
Converts this algorithm to string.- Overrides:
toStringin classEnum<Checksum.Algorithm>
-
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
Validates this algorithm for the specified type. -
hasher
Gets hasher for this algorithm.- Throws:
MinioException
-