recipientGenerator = new JceKeyTransRecipientInfoGenerator(
recipient);
} catch (CertificateEncodingException e) {
throw new MessageEncodingException(e);
}
edGenerator.addRecipientInfoGenerator(recipientGenerator);
LOGGER.debug(
"Encrypting pkcsPkiEnvelope using key belonging to [issuer={}; serial={}]",
recipient.getIssuerDN(), recipient.getSerialNumber());
OutputEncryptor encryptor;