Class AESGCM
- java.lang.Object
-
- com.mastercard.developer.encryption.aes.AESGCM
-
public class AESGCM extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
cipher(Key key, GCMParameterSpec gcpSpec, byte[] bytes, byte[] aad, int mode)
static byte[]
decrypt(Key cek, JweObject object)
-
-
-
Method Detail
-
decrypt
public static byte[] decrypt(Key cek, JweObject object) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
cipher
public static byte[] cipher(Key key, GCMParameterSpec gcpSpec, byte[] bytes, byte[] aad, int mode) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-