Package org.cyclonedx.model
Enum Hash.Algorithm
- java.lang.Object
-
- java.lang.Enum<Hash.Algorithm>
-
- org.cyclonedx.model.Hash.Algorithm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Hash.Algorithm>
- Enclosing class:
- Hash
public static enum Hash.Algorithm extends java.lang.Enum<Hash.Algorithm>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLAKE2b_256BLAKE2b_384BLAKE2b_512BLAKE3MD5SHA_256SHA_384SHA_512SHA1SHA3_256SHA3_384SHA3_512
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringspec
-
Constructor Summary
Constructors Modifier Constructor Description privateAlgorithm(java.lang.String spec)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Hash.AlgorithmfromSpec(java.lang.String spec)java.lang.StringgetSpec()static Hash.AlgorithmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Hash.Algorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MD5
public static final Hash.Algorithm MD5
-
SHA1
public static final Hash.Algorithm SHA1
-
SHA_256
public static final Hash.Algorithm SHA_256
-
SHA_384
public static final Hash.Algorithm SHA_384
-
SHA_512
public static final Hash.Algorithm SHA_512
-
SHA3_256
public static final Hash.Algorithm SHA3_256
-
SHA3_512
public static final Hash.Algorithm SHA3_512
-
SHA3_384
public static final Hash.Algorithm SHA3_384
-
BLAKE2b_256
public static final Hash.Algorithm BLAKE2b_256
-
BLAKE2b_384
public static final Hash.Algorithm BLAKE2b_384
-
BLAKE2b_512
public static final Hash.Algorithm BLAKE2b_512
-
BLAKE3
public static final Hash.Algorithm BLAKE3
-
-
Method Detail
-
values
public static Hash.Algorithm[] 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 (Hash.Algorithm c : Hash.Algorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Hash.Algorithm 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
-
getSpec
public java.lang.String getSpec()
-
fromSpec
public static Hash.Algorithm fromSpec(java.lang.String spec)
-
-