Class SMIMEEnvelopedUtil

java.lang.Object
org.bouncycastle.mail.smime.SMIMEEnvelopedUtil

public class SMIMEEnvelopedUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
    Utility method which will return an SMIMEEnvelopedGenerator or an SMIMEAuthEnvelopedGenerator as appropriate for the algorithm OID passed in.
    static org.bouncycastle.cms.RecipientInformationStore
    getRecipientInfos(jakarta.mail.internet.MimeBodyPart message)
    Parse the passed in MimeMessage extracting the RecipientInfos from it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SMIMEEnvelopedUtil

      public SMIMEEnvelopedUtil()
  • Method Details

    • getRecipientInfos

      public static org.bouncycastle.cms.RecipientInformationStore getRecipientInfos(jakarta.mail.internet.MimeBodyPart message) throws jakarta.mail.MessagingException, org.bouncycastle.cms.CMSException
      Parse the passed in MimeMessage extracting the RecipientInfos from it.
      Parameters:
      message - the message to be parsed.
      Returns:
      the RecipientInformation store for the passed in message.
      Throws:
      jakarta.mail.MessagingException
      org.bouncycastle.cms.CMSException
    • createGenerator

      public static SMIMEEnvelopedGenerator createGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
      Utility method which will return an SMIMEEnvelopedGenerator or an SMIMEAuthEnvelopedGenerator as appropriate for the algorithm OID passed in.
      Parameters:
      algorithm - algorithm OID
      Returns:
      a SMIME Enveloped Generator class.