Skip to content

Commit ee7ee35

Browse files
committed
Revert accidental commit r1744385
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744388 13f79535-47bb-0310-9956-ffa450edef68
1 parent f029922 commit ee7ee35

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

src/main/java/org/apache/commons/codec/digest/HmacUtils.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -833,34 +833,4 @@ public static Mac updateHmac(final Mac mac, final String valueToDigest) {
833833
mac.update(StringUtils.getBytesUtf8(valueToDigest));
834834
return mac;
835835
}
836-
837-
// Fluent interface code
838-
839-
private final Mac mac;
840-
841-
private HmacUtils(Mac mac) {
842-
this.mac = mac;
843-
}
844-
845-
public static HmacUtils with(HmacAlgorithms algo, byte[] key) {
846-
return with(algo.getName(), key);
847-
}
848-
849-
public static HmacUtils with(String algo, byte[] key) {
850-
Mac mac = getInitializedMac(algo, key);
851-
return new HmacUtils(mac);
852-
}
853-
854-
public HmacUtils updateHmac(byte[] valueToDigest) {
855-
mac.update(valueToDigest);
856-
return this;
857-
}
858-
859-
public Mac getMac() {
860-
return mac;
861-
}
862-
863-
public byte[] doFinal() {
864-
return mac.doFinal();
865-
}
866836
}

0 commit comments

Comments
 (0)