}
private CMSSignedData getMessageData(X509CRL crl) throws IOException,
CMSException, GeneralSecurityException {
CMSSignedDataGenerator generator = new CMSSignedDataGenerator();
JcaCRLStore store;
if (crl == null) {
store = new JcaCRLStore(Collections.emptyList());
} else {
store = new JcaCRLStore(Collections.singleton(crl));
}
generator.addCertificates(store);
return generator.generate(new CMSAbsentContent());
}