Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2204F2009D9 for ; Wed, 18 May 2016 00:28:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 20A5F160A1F; Tue, 17 May 2016 22:28:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 652D41609F5 for ; Wed, 18 May 2016 00:28:25 +0200 (CEST) Received: (qmail 65417 invoked by uid 500); 17 May 2016 22:28:24 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 65408 invoked by uid 99); 17 May 2016 22:28:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 22:28:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 108BDC7319 for ; Tue, 17 May 2016 22:28:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.374 X-Spam-Level: X-Spam-Status: No, score=0.374 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 90li_WrG11pX for ; Tue, 17 May 2016 22:28:23 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 466365F4E6 for ; Tue, 17 May 2016 22:28:23 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 38B2DE006A for ; Tue, 17 May 2016 22:28:22 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id A100F3A006A for ; Tue, 17 May 2016 22:28:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1744329 - in /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest: HmacAlgorithms.java HmacUtils.java Date: Tue, 17 May 2016 22:28:21 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160517222821.A100F3A006A@svn01-us-west.apache.org> archived-at: Tue, 17 May 2016 22:28:26 -0000 Author: sebb Date: Tue May 17 22:28:21 2016 New Revision: 1744329 URL: http://svn.apache.org/viewvc?rev=1744329&view=rev Log: CODEC-218 remove unnecessary duplicate method HmacAlgorithms.getInitializedMac Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacAlgorithms.java commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacAlgorithms.java URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacAlgorithms.java?rev=1744329&r1=1744328&r2=1744329&view=diff ============================================================================== --- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacAlgorithms.java (original) +++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacAlgorithms.java Tue May 17 22:28:21 2016 @@ -121,22 +121,6 @@ public enum HmacAlgorithms { } /** - * Returns an initialized Mac for this algorithm. - * - * @param key - * They key for the keyed digest (must not be null) - * @return A Mac instance initialized with the given key. - * @see Mac#getInstance(String) - * @see Mac#init(Key) - * @throws IllegalArgumentException - * when key is null or invalid. - * @since 1.11 - */ - public Mac getInitializedMac(final byte[] key) { - return HmacUtils.getInitializedMac(name, key); - } - - /** * Gets the algorithm name. * * @return the algorithm name. Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java?rev=1744329&r1=1744328&r2=1744329&view=diff ============================================================================== --- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java (original) +++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java Tue May 17 22:28:21 2016 @@ -162,7 +162,7 @@ public final class HmacUtils { */ @Deprecated public static Mac getInitializedMac(final HmacAlgorithms algorithm, final byte[] key) { - return algorithm.getInitializedMac(key); + return algorithm.getHmac(key); } /**