public enum DigestAlgorithm extends Enum<DigestAlgorithm>
Modifier and Type | Method and Description |
---|---|
byte[] |
digestInfoPrefix() |
static DigestAlgorithm |
findByAlgorithm(String algorithm)
Find DigestAlgorithm by algorithm string.
|
static URL |
getDigestAlgorithmUri(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
Obtain digest algorithm URI from DSS digest algorithm.
|
eu.europa.esig.dss.enumerations.DigestAlgorithm |
getDssDigestAlgorithm() |
String |
toString()
Get uri string
|
URL |
uri()
Get uri
|
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 SHA224
public static final DigestAlgorithm SHA256
public static final DigestAlgorithm SHA384
public static final DigestAlgorithm SHA512
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 URL uri()
public byte[] digestInfoPrefix()
public eu.europa.esig.dss.enumerations.DigestAlgorithm getDssDigestAlgorithm()
public String toString()
toString
in class Enum<DigestAlgorithm>
public static DigestAlgorithm findByAlgorithm(String algorithm)
algorithm
- public static URL getDigestAlgorithmUri(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
digestAlgorithm
- DSS digest algorithmTechnicalException
- if there is no URI specified for the algorithmCopyright © 2024. All rights reserved.