You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/05/17 23:19:52 UTC
svn commit: r1744331 -
/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
Author: sebb
Date: Tue May 17 23:19:52 2016
New Revision: 1744331
URL: http://svn.apache.org/viewvc?rev=1744331&view=rev
Log:
Javadoc
Modified:
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/HmacUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java?rev=1744331&r1=1744330&r2=1744331&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 23:19:52 2016
@@ -772,7 +772,7 @@ public final class HmacUtils {
// update
/**
- * Updates the given {@link Mac}. This generates a digest for valueToDigest and the key the Mac was initialized
+ * Updates the given {@link Mac} with the value.
*
* @param mac
* the initialized {@link Mac} to update
@@ -781,7 +781,6 @@ public final class HmacUtils {
* @return the updated {@link Mac}
* @throws IllegalStateException
* if the Mac was not initialized
- * @since 1.x
*/
public static Mac updateHmac(final Mac mac, final byte[] valueToDigest) {
mac.reset();
@@ -790,7 +789,7 @@ public final class HmacUtils {
}
/**
- * Updates the given {@link Mac}. This generates a digest for valueToDigest and the key the Mac was initialized
+ * Updates the given {@link Mac} with the value.
*
* @param mac
* the initialized {@link Mac} to update
@@ -804,7 +803,6 @@ public final class HmacUtils {
* If an I/O error occurs.
* @throws IllegalStateException
* If the Mac was not initialized
- * @since 1.x
*/
public static Mac updateHmac(final Mac mac, final InputStream valueToDigest) throws IOException {
mac.reset();
@@ -820,7 +818,7 @@ public final class HmacUtils {
}
/**
- * Updates the given {@link Mac}. This generates a digest for valueToDigest and the key the Mac was initialized
+ * Updates the given {@link Mac} with the value.
*
* @param mac
* the initialized {@link Mac} to update
@@ -829,7 +827,6 @@ public final class HmacUtils {
* @return the updated {@link Mac}
* @throws IllegalStateException
* if the Mac was not initialized
- * @since 1.x
*/
public static Mac updateHmac(final Mac mac, final String valueToDigest) {
mac.reset();