public static enum ContentDigest.DIGEST_ALGORITHM extends Enum<ContentDigest.DIGEST_ALGORITHM>
Modifier and Type | Method and Description |
---|---|
static ContentDigest.DIGEST_ALGORITHM |
fromScheme(String argScheme)
Return enum value for the provided scheme (e.g.
|
static String |
getScheme(String alg)
Return the scheme associated with the provided algorithm (e.g.
|
static boolean |
isSupportedAlgorithm(String alg)
Return true if the provided algorithm is included in this enum
|
static ContentDigest.DIGEST_ALGORITHM |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentDigest.DIGEST_ALGORITHM[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentDigest.DIGEST_ALGORITHM SHA1
public static final ContentDigest.DIGEST_ALGORITHM SHA256
public static final ContentDigest.DIGEST_ALGORITHM MD5
public static final ContentDigest.DIGEST_ALGORITHM MISSING
public static ContentDigest.DIGEST_ALGORITHM[] values()
for (ContentDigest.DIGEST_ALGORITHM c : ContentDigest.DIGEST_ALGORITHM.values()) System.out.println(c);
public static ContentDigest.DIGEST_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 static String getScheme(String alg)
alg
- for which scheme is requestedpublic static ContentDigest.DIGEST_ALGORITHM fromScheme(String argScheme)
argScheme
- for which enum is requestedpublic static boolean isSupportedAlgorithm(String alg)
alg
- to testCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.