Skip to content

Commit 96f1427

Browse files
disable sonar issue
1 parent 880963d commit 96f1427

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/com/mastercard/developer/encryption/aes

1 file changed

+2
-1
lines changed

src/main/java/com/mastercard/developer/encryption/aes/AESCBC.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class AESCBC {
2121
private AESCBC() {
2222
}
2323

24-
@java.lang.SuppressWarnings("java:S5542")
24+
2525
private static final String CIPHER = "AES/CBC/PKCS5Padding";
2626
private static final String HMAC_ALGORITHM = "HmacSHA256";
2727

@@ -54,6 +54,7 @@ public static byte[] decrypt(Key secretKey, JweObject object, boolean enableHmac
5454
return cipher(aesKey, new IvParameterSpec(iv), cipherText, Cipher.DECRYPT_MODE);
5555
}
5656

57+
@java.lang.SuppressWarnings("java:S5542")
5758
public static byte[] cipher(Key key, AlgorithmParameterSpec iv, byte[] bytes, int mode) throws GeneralSecurityException {
5859
Cipher cipher = Cipher.getInstance(CIPHER);
5960
cipher.init(mode, key, iv);

0 commit comments

Comments
 (0)