Package org.bouncycastle.mail.smime
Class SMIMEEnvelopedParser
java.lang.Object
org.bouncycastle.cms.CMSContentInfoParser
org.bouncycastle.cms.CMSEnvelopedDataParser
org.bouncycastle.mail.smime.SMIMEEnvelopedParser
public class SMIMEEnvelopedParser
extends org.bouncycastle.cms.CMSEnvelopedDataParser
Stream based containing class for an S/MIME pkcs7-mime encrypted MimePart.
-
Field Summary
Fields inherited from class org.bouncycastle.cms.CMSContentInfoParser
_contentInfo, _data
-
Constructor Summary
ConstructorDescriptionSMIMEEnvelopedParser
(javax.mail.internet.MimeBodyPart message) SMIMEEnvelopedParser
(javax.mail.internet.MimeBodyPart message, int bufferSize) Create a parser from a MimeBodyPart using the passed in buffer size for reading it.SMIMEEnvelopedParser
(javax.mail.internet.MimeMessage message) SMIMEEnvelopedParser
(javax.mail.internet.MimeMessage message, int bufferSize) Create a parser from a MimeMessage using the passed in buffer size for reading it. -
Method Summary
Methods inherited from class org.bouncycastle.cms.CMSEnvelopedDataParser
getContentEncryptionAlgorithm, getEncryptionAlgOID, getEncryptionAlgParams, getOriginatorInfo, getRecipientInfos, getUnprotectedAttributes
Methods inherited from class org.bouncycastle.cms.CMSContentInfoParser
close
-
Constructor Details
-
SMIMEEnvelopedParser
public SMIMEEnvelopedParser(javax.mail.internet.MimeBodyPart message) throws IOException, javax.mail.MessagingException, org.bouncycastle.cms.CMSException - Throws:
IOException
javax.mail.MessagingException
org.bouncycastle.cms.CMSException
-
SMIMEEnvelopedParser
public SMIMEEnvelopedParser(javax.mail.internet.MimeMessage message) throws IOException, javax.mail.MessagingException, org.bouncycastle.cms.CMSException - Throws:
IOException
javax.mail.MessagingException
org.bouncycastle.cms.CMSException
-
SMIMEEnvelopedParser
public SMIMEEnvelopedParser(javax.mail.internet.MimeBodyPart message, int bufferSize) throws IOException, javax.mail.MessagingException, org.bouncycastle.cms.CMSException Create a parser from a MimeBodyPart using the passed in buffer size for reading it.- Parameters:
message
- body part to be parsed.bufferSize
- bufferSoze to be used.- Throws:
IOException
javax.mail.MessagingException
org.bouncycastle.cms.CMSException
-
SMIMEEnvelopedParser
public SMIMEEnvelopedParser(javax.mail.internet.MimeMessage message, int bufferSize) throws IOException, javax.mail.MessagingException, org.bouncycastle.cms.CMSException Create a parser from a MimeMessage using the passed in buffer size for reading it.- Parameters:
message
- message to be parsed.bufferSize
- bufferSoze to be used.- Throws:
IOException
javax.mail.MessagingException
org.bouncycastle.cms.CMSException
-
-
Method Details
-
getEncryptedContent
public javax.mail.internet.MimePart getEncryptedContent()
-