Skip to content

Commit

Permalink
Deprecate calculateHmacSha1 method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Nov 21, 2023
1 parent da2b01f commit 47be6a0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ public static String getSignedJWT(String jsonObj, ServiceProvider serviceProvide
}
}

private static String calculateHmacSha256(String key, String value) throws SignatureException {
public static String calculateHmacSha256(String key, String value) throws SignatureException {

String result;
try {
Expand All @@ -804,11 +804,13 @@ private static String calculateHmacSha256(String key, String value) throws Signa
}

/**
* @deprecated Please use calculateHmacSha256 method instead.
* @param key
* @param value
* @return
* @throws SignatureException
*/
@Deprecated
public static String calculateHmacSha1(String key, String value) throws SignatureException {
String result;
try {
Expand Down

0 comments on commit 47be6a0

Please sign in to comment.