public enum Digests extends Enum<Digests> implements Supplier<MessageDigest>
Modifier and Type | Class and Description |
---|---|
static class |
Digests.FromString
Digest enum item from string digest algorithm, case insensitive.
|
Enum Constant and Description |
---|
MD5 |
SHA1 |
SHA256
Common digest algorithms.
|
SHA512 |
Modifier and Type | Method and Description |
---|---|
MessageDigest |
get() |
static Digests |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Digests[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Digests SHA256
public static final Digests SHA1
public static final Digests MD5
public static final Digests SHA512
public static Digests[] values()
for (Digests c : Digests.values()) System.out.println(c);
public static Digests 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 get()
get
in interface Supplier<MessageDigest>
Copyright © 2019–2020 jcabi.com. All rights reserved.