public enum DigestHashAlgorithm extends Enum<DigestHashAlgorithm>
Represent type of algorithm that maps data to a "hash"
| Enum Constant and Description |
|---|
Sha1
SHA-1.
|
Sha256
SHA-256.
|
Sha512
SHA-512.
|
| Modifier and Type | Method and Description |
|---|---|
static DigestHashAlgorithm |
getByValue(int value) |
int |
getValue() |
static DigestHashAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DigestHashAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DigestHashAlgorithm Sha1
SHA-1. Secure Hash Algorithm 1
public static final DigestHashAlgorithm Sha256
SHA-256. Secure Hash Algorithm 2
public static final DigestHashAlgorithm Sha512
SHA-512. Secure Hash Algorithm 2
public static DigestHashAlgorithm[] values()
for (DigestHashAlgorithm c : DigestHashAlgorithm.values()) System.out.println(c);
public static DigestHashAlgorithm 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 int getValue()
public static DigestHashAlgorithm getByValue(int value)
Copyright © 2024 Aspose. All Rights Reserved.