public enum DigestAlgorithm extends Enum<DigestAlgorithm>
| Modifier and Type | Class and Description |
|---|---|
class |
DigestAlgorithm.CloseableMessageDigest |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithmName() |
DigestAlgorithm.CloseableMessageDigest |
getDigest()
Returns a
DigestAlgorithm.CloseableMessageDigest to use for this algorithm. |
static DigestAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DigestAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DigestAlgorithm SHA1
public static final DigestAlgorithm MD5
public static final DigestAlgorithm SHA256
public static DigestAlgorithm[] values()
for (DigestAlgorithm c : DigestAlgorithm.values()) System.out.println(c);
public static DigestAlgorithm 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 getAlgorithmName()
public DigestAlgorithm.CloseableMessageDigest getDigest()
DigestAlgorithm.CloseableMessageDigest to use for this algorithm.Copyright © 2026. All rights reserved.