Package pro.gravit.utils.helper
Enum SecurityHelper.DigestAlgorithm
- java.lang.Object
-
- java.lang.Enum<SecurityHelper.DigestAlgorithm>
-
- pro.gravit.utils.helper.SecurityHelper.DigestAlgorithm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SecurityHelper.DigestAlgorithm>
- Enclosing class:
- SecurityHelper
public static enum SecurityHelper.DigestAlgorithm extends java.lang.Enum<SecurityHelper.DigestAlgorithm>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityHelper.DigestAlgorithmbyName(java.lang.String name)java.lang.StringtoString()static SecurityHelper.DigestAlgorithmvalueOf(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)
-
-
-
Enum Constant Detail
-
PLAIN
public static final SecurityHelper.DigestAlgorithm PLAIN
-
MD5
public static final SecurityHelper.DigestAlgorithm MD5
-
SHA1
public static final SecurityHelper.DigestAlgorithm SHA1
-
SHA224
public static final SecurityHelper.DigestAlgorithm SHA224
-
SHA256
public static final SecurityHelper.DigestAlgorithm SHA256
-
SHA512
public static final SecurityHelper.DigestAlgorithm SHA512
-
-
Method Detail
-
values
public static SecurityHelper.DigestAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SecurityHelper.DigestAlgorithm c : SecurityHelper.DigestAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityHelper.DigestAlgorithm valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
byName
public static SecurityHelper.DigestAlgorithm byName(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<SecurityHelper.DigestAlgorithm>
-
verify
public byte[] verify(byte[] digest)
-
-