Enum HashAlgorithm
- java.lang.Object
-
- java.lang.Enum<HashAlgorithm>
-
- com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.eiffel.HashAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<HashAlgorithm>
public enum HashAlgorithm extends Enum<HashAlgorithm>
The supported hash algorithms when signing events.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HashAlgorithm
fromString(String s)
Constructs aHashAlgorithm
object by parsing a string.String
getDisplayName()
static HashAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static HashAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHA_256
public static final HashAlgorithm SHA_256
-
SHA_384
public static final HashAlgorithm SHA_384
-
SHA_512
public static final HashAlgorithm SHA_512
-
-
Method Detail
-
values
public static HashAlgorithm[] 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 (HashAlgorithm c : HashAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HashAlgorithm valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static HashAlgorithm fromString(String s) throws IllegalArgumentException
Constructs aHashAlgorithm
object by parsing a string.- Throws:
IllegalArgumentException
-
getDisplayName
public String getDisplayName()
-
-