List of usage examples for org.bouncycastle.cms.jcajce JceKEKRecipientInfoGenerator JceKEKRecipientInfoGenerator
public JceKEKRecipientInfoGenerator(byte[] keyIdentifier, SecretKey keyEncryptionKey)
From source file:mitm.common.security.smime.SMIMEBuilderImpl.java
License:Open Source License
@Override public void addRecipient(SecretKey secretKey, byte[] keyIdentifier) { JceKEKRecipientInfoGenerator recipientInfoGenerator = new JceKEKRecipientInfoGenerator(keyIdentifier, secretKey);//from w w w .jav a 2 s .co m envelopedGenerator.addRecipientInfoGenerator(recipientInfoGenerator); }