Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-210

Add DigestUtils.getDigest(String, MessageDigest)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11
    • None

    Description

      Add DigestUtils.getDigest(String algo, MessageDigest):

          /**
           * Returns a <code>MessageDigest</code> for the given <code>algorithm</code> or a default if there is a problem getting the algorithm.
           *
           * @param algorithm
           *            the name of the algorithm requested. See <a
           *            href="http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#AppA"
           *            >Appendix A in the Java Cryptography Architecture Reference Guide</a> for information about standard
           *            algorithm names.
           * @param defaultMessageDigest The default MessageDigest.
           * @return A digest instance.
           * @see MessageDigest#getInstance(String)
           * @throws IllegalArgumentException
           *             when a {@link NoSuchAlgorithmException} is caught.
           * @since 1.11
           */
      

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: