public static enum SecurityHelper.DigestAlgorithm extends java.lang.Enum<SecurityHelper.DigestAlgorithm>
| Enum Constant and Description |
|---|
MD5 |
PLAIN |
SHA1 |
SHA224 |
SHA256 |
SHA512 |
| Modifier and Type | Field and Description |
|---|---|
int |
bits |
int |
bytes |
java.lang.String |
name |
| Modifier and Type | Method and Description |
|---|---|
static SecurityHelper.DigestAlgorithm |
byName(java.lang.String name) |
java.lang.String |
toString() |
static SecurityHelper.DigestAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecurityHelper.DigestAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
byte[] |
verify(byte[] digest) |
public static final SecurityHelper.DigestAlgorithm PLAIN
public static final SecurityHelper.DigestAlgorithm MD5
public static final SecurityHelper.DigestAlgorithm SHA1
public static final SecurityHelper.DigestAlgorithm SHA224
public static final SecurityHelper.DigestAlgorithm SHA256
public static final SecurityHelper.DigestAlgorithm SHA512
public final java.lang.String name
public final int bits
public final int bytes
public static SecurityHelper.DigestAlgorithm[] values()
for (SecurityHelper.DigestAlgorithm c : SecurityHelper.DigestAlgorithm.values()) System.out.println(c);
public static SecurityHelper.DigestAlgorithm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static SecurityHelper.DigestAlgorithm byName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Enum<SecurityHelper.DigestAlgorithm>public byte[] verify(byte[] digest)