You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2016/05/17 10:14:12 UTC

[jira] [Reopened] (CODEC-218) Refactor HmacUtils methods into the HmacAlgorithms enum

     [ https://issues.apache.org/jira/browse/CODEC-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb reopened CODEC-218:
------------------------

The method 

Mac HmacAlgorithms.getInitializedMac(byte[] key)
is identical to
Mac HmacAlgorithms.getHmac(byte[] key)

However the former is only used once, so it should probably be the one to be removed.

> Refactor HmacUtils methods into the HmacAlgorithms enum
> -------------------------------------------------------
>
>                 Key: CODEC-218
>                 URL: https://issues.apache.org/jira/browse/CODEC-218
>             Project: Commons Codec
>          Issue Type: Bug
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
> Maven home: E:\Java\apache-maven-3.3.9\bin\..
> Java version: 1.7.0_79, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_79\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>             Fix For: 1.11
>
>
> Refactor HmacUtils methods into the HmacAlgorithms enum.
> Adds to the enum:
> - getHmac(byte[])
> - getName()
> - hmac(byte[], byte[])
> - hmac(byte[], InputStream)
> - hmac(String, String)
> - hmacHex(byte[], byte[])
> - hmacHex(byte[], InputStream)
> - hmacHex(String, String)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)