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 <code>Mac</code> 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);
     }
 
     /**


Reply via email to