Class SMIMEAuthEnvelopedGenerator


  • public class SMIMEAuthEnvelopedGenerator
    extends SMIMEEnvelopedGenerator
    General class for generating a pkcs7-mime message using AEAD algorithm.

    A simple example of usage.

          SMIMEAuthEnvelopedGenerator fact = new SMIMEAuthEnvelopedGenerator();
    
          fact.addRecipientInfoGenerator(new JceKeyTransRecipientInfoGenerator(recipientCert).setProvider("BC"));
    
          MimeBodyPart mp = fact.generate(content, new JceCMSContentEncryptorBuilder(CMSAlgorithm.AES256_GCM).setProvider("BC").build());
     
    Note: Most clients expect the MimeBodyPart to be in a MimeMultipart when it's sent.
    • Field Detail

      • AES128_GCM

        public static final java.lang.String AES128_GCM
      • AES192_GCM

        public static final java.lang.String AES192_GCM
      • AES256_GCM

        public static final java.lang.String AES256_GCM
    • Constructor Detail

      • SMIMEAuthEnvelopedGenerator

        public SMIMEAuthEnvelopedGenerator()
        base constructor