if (!responsestatus.equals(ResponseStatus.PENDING.getValue()) && messageType.equals("3")) {
// First we extract the encrypted data from the CMS enveloped data contained
// within the CMS signed data
CMSProcessable sp = s.getSignedContent();
byte[] content = (byte[])sp.getContent();
CMSEnvelopedData ed = new CMSEnvelopedData(content);
RecipientInformationStore recipients = ed.getRecipientInfos();
Collection c = recipients.getRecipients();
assertEquals(c.size(), 1);
Iterator it = c.iterator();
byte[] decBytes = null;
RecipientInformation recipient = (RecipientInformation) it.next();