Class SMIMEEnvelopedUtil
java.lang.Object
org.bouncycastle.mail.smime.SMIMEEnvelopedUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SMIMEEnvelopedGeneratorcreateGenerator(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.RecipientInformationStoregetRecipientInfos(javax.mail.internet.MimeBodyPart message) Parse the passed in MimeMessage extracting the RecipientInfos from it.
-
Constructor Details
-
SMIMEEnvelopedUtil
public SMIMEEnvelopedUtil()
-
-
Method Details
-
getRecipientInfos
public static org.bouncycastle.cms.RecipientInformationStore getRecipientInfos(javax.mail.internet.MimeBodyPart message) throws javax.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:
javax.mail.MessagingExceptionorg.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.
-