public enum DigestHashAlgorithm extends Enum<DigestHashAlgorithm>
Represent type of algorithm that maps data to a "hash"
Enum Constant and Description |
---|
Auto
Automatic setting of the hashing algorithm at the discretion of the signature algorithm.
|
Sha1
SHA-1.
|
Sha256
SHA-256.
|
Sha3_256
SHA3-256.
|
Sha3_384
SHA3-384.
|
Sha3_512
SHA3-512.
|
Sha384
SHA-384.
|
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 Auto
Automatic setting of the hashing algorithm at the discretion of the signature algorithm. For EDCSA, the default value is determined by the key size. The default value for a not detached PKCS7 is Sha1.
public static final DigestHashAlgorithm Sha1
SHA-1. Secure Hash Algorithm 1 It is a default value for a not detached PKCS7.
public static final DigestHashAlgorithm Sha256
SHA-256. Secure Hash Algorithm 2 It is a default value for a detached PKCS7.
For EDCSA, the default value is determined by the key size.
public static final DigestHashAlgorithm Sha384
SHA-384. Secure Hash Algorithm 2
public static final DigestHashAlgorithm Sha512
SHA-512. Secure Hash Algorithm 2
public static final DigestHashAlgorithm Sha3_256
SHA3-256. Secure Hash Algorithm 3
public static final DigestHashAlgorithm Sha3_384
SHA3-384. Secure Hash Algorithm 3
public static final DigestHashAlgorithm Sha3_512
SHA3-512. Secure Hash Algorithm 3
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 © 2025 Aspose. All Rights Reserved.