Example usage for org.bouncycastle.cms.jcajce JceKEKRecipientInfoGenerator JceKEKRecipientInfoGenerator

List of usage examples for org.bouncycastle.cms.jcajce JceKEKRecipientInfoGenerator JceKEKRecipientInfoGenerator

Introduction

In this page you can find the example usage for org.bouncycastle.cms.jcajce JceKEKRecipientInfoGenerator JceKEKRecipientInfoGenerator.

Prototype

public JceKEKRecipientInfoGenerator(byte[] keyIdentifier, SecretKey keyEncryptionKey) 

Source Link

Usage

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);
}