public enum STHashAlgorithm extends Enum<STHashAlgorithm>
Java class for ST_HashAlgorithm.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ST_HashAlgorithm"> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="SHA1"/> <enumeration value="SHA256"/> <enumeration value="SHA384"/> <enumeration value="SHA512"/> <enumeration value="MD5"/> <enumeration value="MD4"/> <enumeration value="MD2"/> <enumeration value="RIPEMD-128"/> <enumeration value="RIPEMD-160"/> <enumeration value="WHIRLPOOL"/> </restriction> </simpleType>
Enum Constant and Description |
---|
MD_2
MUST conform to the algorithm as specified in [RFC1319] (http://tools.ietf.org/html/rfc1319).
|
MD_4
MUST conform to the algorithm as specified in [RFC1320] (http://tools.ietf.org/html/rfc1320).
|
MD_5
MUST conform to MD5.
|
RIPEMD_128
MUST conform to the hash functions specified in [ISO/IEC 10118].
|
RIPEMD_160
see RIPEMD-128 (https://en.wikipedia.org/wiki/RIPEMD)
|
SHA_1
MUST conform to the algorithm as specified in [RFC4634] (http://tools.ietf.org/html/rfc4634).
|
SHA_256
see SHA1
|
SHA_384
see SHA1
|
SHA_512
see SHA1
|
WHIRLPOOL
see RIPEMD-128 (https://en.wikipedia.org/wiki/ISO/IEC_10118-3)
|
Modifier and Type | Method and Description |
---|---|
static STHashAlgorithm |
fromValue(String v) |
String |
value() |
static STHashAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static STHashAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final STHashAlgorithm SHA_1
public static final STHashAlgorithm SHA_256
public static final STHashAlgorithm SHA_384
public static final STHashAlgorithm SHA_512
public static final STHashAlgorithm MD_5
public static final STHashAlgorithm MD_4
public static final STHashAlgorithm MD_2
public static final STHashAlgorithm RIPEMD_128
public static final STHashAlgorithm RIPEMD_160
public static final STHashAlgorithm WHIRLPOOL
public static STHashAlgorithm[] values()
for (STHashAlgorithm c : STHashAlgorithm.values()) System.out.println(c);
public static STHashAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
public static STHashAlgorithm fromValue(String v)
Copyright © 2007-2019. All Rights Reserved.