public enum Algorithm extends Enum<Algorithm>
| Modifier and Type | Method and Description |
|---|---|
static Algorithm |
getAlgorithm(String algorithmString)
getAlgorithm
|
List<? extends String> |
getAlternativeNames()
Returns a list containing all alternative names for the given algorithm
|
int |
getExpectedLength() |
MessageDigest |
getMessageDigest()
Returns the Message Digest algorithm
|
static Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Algorithm MD5
public static final Algorithm SHA1
public static final Algorithm SHA256
public static final Algorithm SHA512
public static Algorithm[] values()
for (Algorithm c : Algorithm.values()) System.out.println(c);
public static Algorithm 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 null@Nonnull public static Algorithm getAlgorithm(@Nonnull String algorithmString)
getAlgorithm
algorithmString - a String object.@Nonnull public List<? extends String> getAlternativeNames()
@Nonnull public MessageDigest getMessageDigest()
public int getExpectedLength()
Copyright © 2007–2016 cedarsoft GmbH. All rights reserved.