@Test public void testEncryptAESGCM_withNullPlainText_throwsEncryptionException() throws EncryptionException { byte[] plainText = null; this.exception.expect(EncryptionException.class); new EncryptionUtil().encryptAESGCM(plainText, this.key, this.iv, this.aad); }
@Override public byte[] encryptAESGCM(byte[] plainText, SecretKey key, byte[] iv, byte[] aad) throws EncryptionException { return new AESGCMEncryption().encrypt(plainText, key, iv, aad); }
EncryptionUtil implements EncryptionApi { @Override public byte[] encryptAESGCM(byte[] plainText, SecretKey key, byte[] iv, byte[] aad) throws EncryptionException { return new AESGCMEncryption().encrypt(plainText, key, iv, aad); } }
EncryptionUtil implements EncryptionApi { @Override public byte[] encryptAESGCM(byte[] plainText, SecretKey key, byte[] iv, byte[] aad) throws EncryptionException { return new AESGCMEncryption().encrypt(plainText, key, iv, aad); }  }
EncryptionUtil implements EncryptionApi { @Override public byte[] encryptAESGCM(byte[] plainText, SecretKey key, byte[] iv, byte[] aad) throws EncryptionException { return new AESGCMEncryption().encrypt(plainText, key, iv, aad); }  @Override byte[] encryptAESGCM(byte[] plainText, SecretKey key, byte[] iv, byte[] aad); @Override byte[] decryptAESGCM(byte[] cipherText, SecretKey key, byte[] iv, byte[] aad); @Override String encryptAESCTR(String plainText); @Override String decryptAESCTR(String cipherText); @Override boolean validateAESCTR(String plainText, String validCipherText); @Override @Deprecated // DESDecryption is used only to support legacy upgrade purposes String decryptDES(String cipherText); }
EncryptionUtil implements EncryptionApi { @Override public byte[] encryptAESGCM(byte[] plainText, SecretKey key, byte[] iv, byte[] aad) throws EncryptionException { return new AESGCMEncryption().encrypt(plainText, key, iv, aad); }  @Override byte[] encryptAESGCM(byte[] plainText, SecretKey key, byte[] iv, byte[] aad); @Override byte[] decryptAESGCM(byte[] cipherText, SecretKey key, byte[] iv, byte[] aad); @Override String encryptAESCTR(String plainText); @Override String decryptAESCTR(String cipherText); @Override boolean validateAESCTR(String plainText, String validCipherText); @Override @Deprecated // DESDecryption is used only to support legacy upgrade purposes String decryptDES(String cipherText); static final String SECURITY_PROPS_RESOURCE_PATH; }