org.bouncycastle.mail.smime

Class SMIMEEnvelopedParser


public class SMIMEEnvelopedParser
extends 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

SMIMEEnvelopedParser(MimeBodyPart message)
SMIMEEnvelopedParser(MimeBodyPart message, int bufferSize)
Create a parser from a MimeBodyPart using the passed in buffer size for reading it.
SMIMEEnvelopedParser(MimeMessage message)
SMIMEEnvelopedParser(MimeMessage message, int bufferSize)
Create a parser from a MimeMessage using the passed in buffer size for reading it.

Method Summary

MimePart
getEncryptedContent()

Methods inherited from class org.bouncycastle.cms.CMSEnvelopedDataParser

getEncryptionAlgOID, getEncryptionAlgParams, getEncryptionAlgorithmParameters, getRecipientInfos, getUnprotectedAttributes

Methods inherited from class org.bouncycastle.cms.CMSContentInfoParser

close

Constructor Details

SMIMEEnvelopedParser

public SMIMEEnvelopedParser(MimeBodyPart message)
            throws IOException,
                   MessagingException,
                   CMSException

SMIMEEnvelopedParser

public SMIMEEnvelopedParser(MimeBodyPart message,
                            int bufferSize)
            throws IOException,
                   MessagingException,
                   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.

SMIMEEnvelopedParser

public SMIMEEnvelopedParser(MimeMessage message)
            throws IOException,
                   MessagingException,
                   CMSException

SMIMEEnvelopedParser

public SMIMEEnvelopedParser(MimeMessage message,
                            int bufferSize)
            throws IOException,
                   MessagingException,
                   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.

Method Details

getEncryptedContent

public MimePart getEncryptedContent()