Enum HmacAlgorithms

java.lang.Object
java.lang.Enum<HmacAlgorithms>
org.apache.commons.codec.digest.HmacAlgorithms
All Implemented Interfaces:
Serializable, Comparable<HmacAlgorithms>

public enum HmacAlgorithms extends Enum<HmacAlgorithms>
Standard HmacUtils algorithm names from the Java Cryptography Architecture Standard Algorithm Name Documentation.

Note: Not all JCE implementations support all the algorithms in this enum.

Since:
1.10
See Also:
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The HmacMD5 Message Authentication Code (MAC) algorithm specified in RFC 2104 and RFC 1321.
    The HmacSHA1 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
    The HmacSHA224 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
    The HmacSHA256 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
    The HmacSHA384 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
    The HmacSHA512 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the algorithm name.
    The algorithm name.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • HMAC_MD5

      public static final HmacAlgorithms HMAC_MD5
      The HmacMD5 Message Authentication Code (MAC) algorithm specified in RFC 2104 and RFC 1321.

      Every implementation of the Java platform is required to support this standard MAC algorithm.

    • HMAC_SHA_1

      public static final HmacAlgorithms HMAC_SHA_1
      The HmacSHA1 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.

      Every implementation of the Java platform is required to support this standard MAC algorithm.

    • HMAC_SHA_224

      public static final HmacAlgorithms HMAC_SHA_224
      The HmacSHA224 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.

      Every implementation of the Java 8+ platform is required to support this standard MAC algorithm.

      Since:
      1.11
    • HMAC_SHA_256

      public static final HmacAlgorithms HMAC_SHA_256
      The HmacSHA256 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.

      Every implementation of the Java platform is required to support this standard MAC algorithm.

    • HMAC_SHA_384

      public static final HmacAlgorithms HMAC_SHA_384
      The HmacSHA384 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.

      This MAC algorithm is optional; not all implementations support it.

    • HMAC_SHA_512

      public static final HmacAlgorithms HMAC_SHA_512
      The HmacSHA512 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.

      This MAC algorithm is optional; not all implementations support it.

  • Method Details