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

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 Details

    • SHA_1

      public static final STHashAlgorithm SHA_1
      MUST conform to the algorithm as specified in [RFC4634] (http://tools.ietf.org/html/rfc4634).
    • SHA_256

      public static final STHashAlgorithm SHA_256
      see SHA1
    • SHA_384

      public static final STHashAlgorithm SHA_384
      see SHA1
    • SHA_512

      public static final STHashAlgorithm SHA_512
      see SHA1
    • MD_5

      public static final STHashAlgorithm MD_5
      MUST conform to MD5.
    • MD_4

      public static final STHashAlgorithm MD_4
      MUST conform to the algorithm as specified in [RFC1320] (http://tools.ietf.org/html/rfc1320).
    • MD_2

      public static final STHashAlgorithm MD_2
      MUST conform to the algorithm as specified in [RFC1319] (http://tools.ietf.org/html/rfc1319).
    • RIPEMD_128

      public static final STHashAlgorithm RIPEMD_128
      MUST conform to the hash functions specified in [ISO/IEC 10118]. (https://en.wikipedia.org/wiki/RIPEMD)
    • RIPEMD_160

      public static final STHashAlgorithm RIPEMD_160
      see RIPEMD-128 (https://en.wikipedia.org/wiki/RIPEMD)
    • WHIRLPOOL

      public static final STHashAlgorithm WHIRLPOOL
      see RIPEMD-128 (https://en.wikipedia.org/wiki/ISO/IEC_10118-3)
  • Method Details

    • values

      public static STHashAlgorithm[] 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

      public static STHashAlgorithm 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 name
      NullPointerException - if the argument is null
    • value

      public String value()
    • fromValue

      public static STHashAlgorithm fromValue(String v)