* @param certificateKeyProvider
* @return
* @throws CMSException
*/
public static byte[] getContent(RecipientInformation recipientInfo, PrivateKey certificateKey, String certificateKeyProvider) throws CMSException {
Recipient jceKeyTransRecipient = new JceKeyTransEnvelopedRecipient(certificateKey).setProvider(certificateKeyProvider);
return recipientInfo.getContent(jceKeyTransRecipient);
}