public static enum Checksum.Algorithm extends Enum<Checksum.Algorithm>
| Enum Constant and Description |
|---|
CRC32 |
CRC32C |
CRC64NVME |
MD5 |
SHA1 |
SHA256 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compositeSupport()
Returns whether this algorithm supports composite object checksum.
|
boolean |
fullObjectSupport()
Returns whether this algorithm supports full object checksum.
|
Checksum.Hasher |
hasher()
Gets hasher for this algorithm.
|
String |
header()
Gets HTTP header key for this algorithm.
|
String |
toString()
Converts this algorithm to string.
|
void |
validate(Checksum.Type type)
Validates this algorithm for the specified type.
|
static Checksum.Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Checksum.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Checksum.Algorithm CRC32
public static final Checksum.Algorithm CRC32C
public static final Checksum.Algorithm CRC64NVME
public static final Checksum.Algorithm SHA1
public static final Checksum.Algorithm SHA256
public static final Checksum.Algorithm MD5
public static Checksum.Algorithm[] values()
for (Checksum.Algorithm c : Checksum.Algorithm.values()) System.out.println(c);
public static Checksum.Algorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Checksum.Algorithm>public String header()
public boolean fullObjectSupport()
public boolean compositeSupport()
public void validate(Checksum.Type type)
public Checksum.Hasher hasher() throws MinioException
MinioException