Module org.xbib.rpm

Enum Class HashAlgo

java.lang.Object
java.lang.Enum<HashAlgo>
org.xbib.rpm.security.HashAlgo
All Implemented Interfaces:
Serializable, Comparable<HashAlgo>, Constable

public enum HashAlgo extends Enum<HashAlgo>
Enumeration of hash algorithms as of RFC 4880.
  • Enum Constant Details

    • MD5

      public static final HashAlgo MD5
    • SHA1

      public static final HashAlgo SHA1
    • RIPEMD160

      public static final HashAlgo RIPEMD160
    • DOUBLESHA

      public static final HashAlgo DOUBLESHA
    • MD2

      public static final HashAlgo MD2
    • TIGER192

      public static final HashAlgo TIGER192
    • HAVAL_5_160

      public static final HashAlgo HAVAL_5_160
    • SHA256

      public static final HashAlgo SHA256
    • SHA384

      public static final HashAlgo SHA384
    • SHA512

      public static final HashAlgo SHA512
    • SHA224

      public static final HashAlgo SHA224
  • Method Details

    • values

      public static HashAlgo[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HashAlgo valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • algo

      public String algo()
    • num

      public int num()