public enum Digest extends Enum<Digest>
| Enum Constant and Description |
|---|
SHA1
Supported algorithm enumeration: SHA-1, SHA-256.
|
SHA256 |
| Modifier and Type | Method and Description |
|---|---|
MessageDigest |
messageDigest()
Instantiate MessageDigest instance.
|
String |
type()
Returns short algorithm name for using in RPM metadata.
|
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 SHA1
public static final Digest SHA256
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 MessageDigest messageDigest()
public String type()
Copyright © 2019–2020 jcabi.com. All rights reserved.