public enum StandardDigestAlgorithms extends Enum<StandardDigestAlgorithms>
Minimum supported, see ยง Algorithms in https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#Notes_on_Manifest_and_Signature_Files
Enum Constant and Description |
---|
MD5
Note: MD5 is slated for removal, JDK10 won't consider JAR as signed when using this as a Digest Algorithm
|
SHA1 |
SHA224 |
SHA256 |
SHA384 |
SHA512 |
Modifier and Type | Method and Description |
---|---|
String |
algorithm()
algorithm.
|
MessageDigest |
create() |
static StandardDigestAlgorithms |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardDigestAlgorithms[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardDigestAlgorithms MD5
public static final StandardDigestAlgorithms SHA1
public static final StandardDigestAlgorithms SHA224
public static final StandardDigestAlgorithms SHA256
public static final StandardDigestAlgorithms SHA384
public static final StandardDigestAlgorithms SHA512
public static StandardDigestAlgorithms[] values()
for (StandardDigestAlgorithms c : StandardDigestAlgorithms.values()) System.out.println(c);
public static StandardDigestAlgorithms 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 MessageDigest create()
UncheckedSecurityException
- if no such algorithm is availableCopyright © 2018 earcam. All rights reserved.