Enum STHashAlgorithm
java.lang.Object
java.lang.Enum<STHashAlgorithm>
org.docx4j.com.microsoft.schemas.office.x2006.encryption.STHashAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<STHashAlgorithm>
,java.lang.constant.Constable
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>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMUST conform to the algorithm as specified in [RFC1319] (http://tools.ietf.org/html/rfc1319).MUST conform to the algorithm as specified in [RFC1320] (http://tools.ietf.org/html/rfc1320).MUST conform to MD5.MUST conform to the hash functions specified in [ISO/IEC 10118].see RIPEMD-128 (https://en.wikipedia.org/wiki/RIPEMD)MUST conform to the algorithm as specified in [RFC4634] (http://tools.ietf.org/html/rfc4634).see SHA1see SHA1see SHA1see RIPEMD-128 (https://en.wikipedia.org/wiki/ISO/IEC_10118-3) -
Method Summary
Modifier and TypeMethodDescriptionstatic STHashAlgorithm
value()
static STHashAlgorithm
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.
-
Enum Constant Details
-
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 -
MD_5
MUST conform to MD5. -
MD_4
MUST conform to the algorithm as specified in [RFC1320] (http://tools.ietf.org/html/rfc1320). -
MD_2
MUST conform to the algorithm as specified in [RFC1319] (http://tools.ietf.org/html/rfc1319). -
RIPEMD_128
MUST conform to the hash functions specified in [ISO/IEC 10118]. (https://en.wikipedia.org/wiki/RIPEMD) -
RIPEMD_160
see RIPEMD-128 (https://en.wikipedia.org/wiki/RIPEMD) -
WHIRLPOOL
see RIPEMD-128 (https://en.wikipedia.org/wiki/ISO/IEC_10118-3)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
value
-
fromValue
-