Package org.bouncycastle.mail.smime
Class SMIMEEnvelopedUtil
- java.lang.Object
-
- org.bouncycastle.mail.smime.SMIMEEnvelopedUtil
-
public class SMIMEEnvelopedUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SMIMEEnvelopedUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
getRecipientInfos
public static org.bouncycastle.cms.RecipientInformationStore getRecipientInfos(javax.mail.internet.MimeBodyPart message) throws javax.mail.MessagingException, org.bouncycastle.cms.CMSExceptionParse 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.
-
-