log.debug("Dynamically generating KeyInfo from Credential for EncryptedData using generator: {}",
generator.getClass().getName());
try {
encryptedData.setKeyInfo( generator.generate(encParams.getEncryptionCredential()) );
} catch (SecurityException e) {
throw new EncryptionException("Error generating EncryptedData KeyInfo", e);
}
}
List<EncryptedKey> encryptedKeys = new ArrayList<EncryptedKey>();
if (kekParamsList != null && ! kekParamsList.isEmpty()) {