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

Fluent interface for HmacUtils

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      As with DigestUtils, HmacUtils has lots of similar methods, differing only by their name.

      To simplify this, and unify the API for current standard and new algorithms, a fluent approach is proposed. This still allows for using the enum values defined in HmacAlgorithms but does not require the use of a different API for algorithms that are not supported by the enum.

      The design is as for DigestUtils: create an instance of HmacUtils containing the Mac to be updated, and provide chaining instance methods to update it and generate the output.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: