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

DigestUtils: add updateDigest methods and make methods public.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.7

    Description

      I've slightly modified the DigestUtils class:

      • changed the visibility (protected --> public) of a few methods: these methods are generally useful if one just wants to get a MessageDigest instance for a given algorithm
      • added two 'updateDigest' methods which can be used to add more data to digest to the provided MessageDigest. The advantage for the one that accepts a String argument is that it keeps the same logic as the rest of DigestUtils (uses getBytesUtf8). The second one which accepts a byte array is there for consistency

      Attachments

        1. DigestUtils-patch.txt
          3 kB
          Sebastien Dubois
        2. DigestUtils-patch-updated-2012-04-20.txt
          6 kB
          Sebastien Dubois
        3. guavacourt-hooke1-qrcode-SMALL.png
          0.8 kB
          Paolo Calabro
        4. guavacourt-psychicr-qrcode-SMALL.png
          0.8 kB
          Paolo Calabro

        Activity

          People

            Unassigned Unassigned
            dsebastien Sebastien Dubois
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified