public enum BagItDigest extends Enum<BagItDigest>
| Modifier and Type | Method and Description |
|---|---|
String |
bagitName()
Retrieve the bagit formatted version of the algorithm
|
MessageDigest |
messageDigest()
Retrieve a
MessageDigest for the given algorithm |
static BagItDigest |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BagItDigest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BagItDigest MD5
public static final BagItDigest SHA1
public static final BagItDigest SHA256
public static final BagItDigest SHA512
public static BagItDigest[] values()
for (BagItDigest c : BagItDigest.values()) System.out.println(c);
public static BagItDigest 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 bagitName()
public MessageDigest messageDigest()
MessageDigest for the given algorithmCopyright © 2020. All rights reserved.