Skip to content

Commit

Permalink
Deprecate unused HashUtil methods
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed May 31, 2024
1 parent b12d782 commit 9a09c99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/vonage/client/auth/hashutils/HashUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ public class HashUtil {
* @return representation of the input string with given hash type
* @throws NoSuchAlgorithmException if the algorithm is not available.
* @throws InvalidKeyException Only applicable to HMAC encoding types, when a bad key is provided.
*
* @deprecated This will be removed in the next major release.
*/
@Deprecated
public static String calculate(String input, HashType hashType) throws NoSuchAlgorithmException, InvalidKeyException {
return HASH_TYPES.get(hashType).calculate(input);
}
Expand All @@ -60,7 +63,10 @@ public static String calculate(String input, HashType hashType) throws NoSuchAlg
* @throws NoSuchAlgorithmException if the algorithm is not available.
* @throws InvalidKeyException Only applicable to HMAC encoding types, when a bad key is provided.
* @throws UnsupportedEncodingException if the specified encoding is unavailable.
*
* @deprecated This will be removed in the next major release.
*/
@Deprecated
public static String calculate(String input, String encoding, HashType hashType) throws NoSuchAlgorithmException, UnsupportedEncodingException, InvalidKeyException {
return HASH_TYPES.get(hashType).calculate(input, encoding);
}
Expand Down

0 comments on commit 9a09c99

Please sign in to comment.