public enum Digest extends Enum<Digest>
Enum Constant and Description |
---|
AEAD
Deprecated.
no longer used; refer to the actual digest algorithm instead.
|
GOST89MAC
The GOST 28147-89 (MAC, not HMAC) digest algorithm.
|
GOST94
The GOST R 34.11-94 (HMAC) digest algorithm.
|
MD5
The MD5 digest algorithm.
|
SHA1
The SHA-1 digest algorithm.
|
SHA256
The SHA-256 digest algorithm.
|
SHA384
The SHA-384 digest algorithm.
|
Modifier and Type | Method and Description |
---|---|
boolean |
in(Digest... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(Digest value1,
Digest value2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(Digest value1,
Digest value2,
Digest value3)
Determine whether this instance is equal to one of the given instances.
|
static boolean |
isFull(EnumSet<Digest> digests)
Determine whether the given set is "full" (meaning it contains all possible values).
|
static Digest |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Digest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Digest MD5
public static final Digest SHA1
public static final Digest GOST94
public static final Digest GOST89MAC
public static final Digest SHA256
public static final Digest SHA384
@Deprecated public static final Digest AEAD
public static Digest[] values()
for (Digest c : Digest.values()) System.out.println(c);
public static Digest 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 static boolean isFull(EnumSet<Digest> digests)
digests
- the settrue
if the set is full, false
otherwisepublic boolean in(Digest value1, Digest value2)
value1
- the first instancevalue2
- the second instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(Digest value1, Digest value2, Digest value3)
value1
- the first instancevalue2
- the second instancevalue3
- the third instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(Digest... values)
values
- the values to match againsttrue
if one of the instances matches this one, false
otherwiseCopyright © 2019 JBoss by Red Hat. All rights reserved.