[
https://issues.apache.org/jira/browse/CODEC-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15295773#comment-15295773
]
Sebb commented on CODEC-222:
----------------------------
Various changes to try an simplify the interface
URL: http://svn.apache.org/viewvc?rev=1745052&view=rev
Log:
Simplify - always require key when creating the instance
Modified:
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
URL: http://svn.apache.org/viewvc?rev=1745057&view=rev
Log:
Inline the code from the enum
Modified:
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
URL: http://svn.apache.org/viewvc?rev=1745063&view=rev
Log:
Simplify; merge update() and doFinal() methods so code looks more like original
static methods.
Modified:
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
URL: http://svn.apache.org/viewvc?rev=1745098&view=rev
Log:
Use local code rather than depending on the enum methods
Modified:
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
URL: http://svn.apache.org/viewvc?rev=1745099&view=rev
Log:
Fix Javadoc
Modified:
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
> Fluent interface for HmacUtils
> ------------------------------
>
> Key: CODEC-222
> URL: https://issues.apache.org/jira/browse/CODEC-222
> Project: Commons Codec
> Issue Type: New Feature
> Reporter: Sebb
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)