Enum Digest

    • Enum Constant Detail

      • MD5

        public static final Digest MD5
        The MD5 digest algorithm.
      • SHA1

        public static final Digest SHA1
        The SHA-1 digest algorithm.
      • GOST94

        public static final Digest GOST94
        The GOST R 34.11-94 (HMAC) digest algorithm.
      • GOST89MAC

        public static final Digest GOST89MAC
        The GOST 28147-89 (MAC, not HMAC) digest algorithm.
      • SHA256

        public static final Digest SHA256
        The SHA-256 digest algorithm.
      • SHA384

        public static final Digest SHA384
        The SHA-384 digest algorithm.
      • AEAD

        @Deprecated
        public static final Digest AEAD
        Deprecated.
        no longer used; refer to the actual digest algorithm instead.
        AEAD (Authenticated Encryption with Associated Data) based authenticated message mode.
    • Method Detail

      • values

        public static Digest[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Digest c : Digest.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Digest 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
      • isFull

        public static boolean isFull​(EnumSet<Digest> digests)
        Determine whether the given set is "full" (meaning it contains all possible values).
        Parameters:
        digests - the set
        Returns:
        true if the set is full, false otherwise
      • in

        public boolean in​(Digest value1,
                          Digest value2)
        Determine whether this instance is equal to one of the given instances.
        Parameters:
        value1 - the first instance
        value2 - the second instance
        Returns:
        true if one of the instances matches this one, false otherwise
      • in

        public boolean in​(Digest value1,
                          Digest value2,
                          Digest value3)
        Determine whether this instance is equal to one of the given instances.
        Parameters:
        value1 - the first instance
        value2 - the second instance
        value3 - the third instance
        Returns:
        true if one of the instances matches this one, false otherwise
      • in

        public boolean in​(Digest... values)
        Determine whether this instance is equal to one of the given instances.
        Parameters:
        values - the values to match against
        Returns:
        true if one of the instances matches this one, false otherwise