Enum Class Digest

java.lang.Object
java.lang.Enum<Digest>
w.crypto.digest.Digest
All Implemented Interfaces:
Serializable, Comparable<Digest>, Constable

public enum Digest extends Enum<Digest>
Author:
whilein
  • Enum Constant Details

    • MD2

      public static final Digest MD2
    • MD5

      public static final Digest MD5
    • SHA_1

      public static final Digest SHA_1
    • SHA_224

      public static final Digest SHA_224
    • SHA_256

      public static final Digest SHA_256
    • SHA5_224

      public static final Digest SHA5_224
    • SHA5_256

      public static final Digest SHA5_256
    • SHA5_512

      public static final Digest SHA5_512
    • SHA3_224

      public static final Digest SHA3_224
    • SHA3_256

      public static final Digest SHA3_256
    • SHA3_384

      public static final Digest SHA3_384
    • SHA3_512

      public static final Digest SHA3_512
  • Method Details

    • values

      public static Digest[] 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 Digest 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
    • createAlgorithm

      @NotNull public @NotNull DigestAlgorithm createAlgorithm()
    • digest

      @NotNull public @NotNull String digest(@NotNull @NotNull String input)
    • digest

      public byte @NotNull [] digest(byte @NotNull [] bytes)
    • digest

      public byte @NotNull [] digest(byte @NotNull [] bytes, int off, int len)