Package org.xipki.security.ctlog
Enum CtLog.HashAlgorithm
- java.lang.Object
-
- java.lang.Enum<CtLog.HashAlgorithm>
-
- org.xipki.security.ctlog.CtLog.HashAlgorithm
-
- All Implemented Interfaces:
Serializable,Comparable<CtLog.HashAlgorithm>
- Enclosing class:
- CtLog
public static enum CtLog.HashAlgorithm extends Enum<CtLog.HashAlgorithm>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetCode()static CtLog.HashAlgorithmofCode(byte code)static CtLog.HashAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static CtLog.HashAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final CtLog.HashAlgorithm none
-
md5
public static final CtLog.HashAlgorithm md5
-
sha1
public static final CtLog.HashAlgorithm sha1
-
sha224
public static final CtLog.HashAlgorithm sha224
-
sha256
public static final CtLog.HashAlgorithm sha256
-
sha384
public static final CtLog.HashAlgorithm sha384
-
sha512
public static final CtLog.HashAlgorithm sha512
-
-
Method Detail
-
values
public static CtLog.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 (CtLog.HashAlgorithm c : CtLog.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 CtLog.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
-
getCode
public byte getCode()
-
ofCode
public static CtLog.HashAlgorithm ofCode(byte code)
-
-