public enum Algorithm
Represents an algorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
Algorithm.Companion |
| Modifier and Type | Field and Description |
|---|---|
static Algorithm.Companion |
Companion |
| Modifier and Type | Method and Description |
|---|---|
static Algorithm |
getAlgorithm(java.lang.String algorithmString) |
java.util.List<java.lang.String> |
getAlternativeNames()
Returns a list containing all alternative names for the given algorithm
|
int |
getExpectedLength() |
java.security.MessageDigest |
getMessageDigest()
Creates a new message digest for the algorithm
|
public static Algorithm MD5
public static Algorithm SHA1
public static Algorithm SHA256
public static Algorithm SHA512
public static Algorithm.Companion Companion
@NotNull public java.security.MessageDigest getMessageDigest()
Creates a new message digest for the algorithm
@NotNull public java.util.List<java.lang.String> getAlternativeNames()
Returns a list containing all alternative names for the given algorithm
public int getExpectedLength()
@JvmStatic @NotNull public static Algorithm getAlgorithm(@NotNull java.lang.String algorithmString)