Top Description Fields Constructors Methods
org.bouncycastle.mail.smime

public Class SMIMEEnvelopedParser

extends CMSEnvelopedDataParser
Class Inheritance
Imports
java.io.BufferedInputStream, .IOException, .InputStream, javax.mail.MessagingException, .Part, javax.mail.internet.MimeBodyPart, .MimeMessage, .MimePart, org.bouncycastle.cms.CMSEnvelopedDataParser, .CMSException

Stream based containing class for an S/MIME pkcs7-mime encrypted MimePart.

Field Summary

Modifier and TypeField and Description
private final MimePart

Constructor Summary

AccessConstructor and Description
public
public
public
SMIMEEnvelopedParser(MimeBodyPart
body part to be parsed.
message
,
int
bufferSoze to be used.
bufferSize
)

Create a parser from a MimeBodyPart using the passed in buffer size for reading it.

public
SMIMEEnvelopedParser(MimeMessage
message to be parsed.
message
,
int
bufferSoze to be used.
bufferSize
)

Create a parser from a MimeMessage using the passed in buffer size for reading it.

Method Summary

Modifier and TypeMethod and Description
public MimePart
private static InputStream
getInputStream(Part bodyPart, int bufferSize)

Inherited from org.bouncycastle.cms.CMSEnvelopedDataParser:
getContentEncryptionAlgorithmgetEncryptionAlgOIDgetEncryptionAlgParamsgetOriginatorInfogetRecipientInfosgetUnprotectedAttributes

Field Detail

messageback to summary
private final MimePart message

Constructor Detail

SMIMEEnvelopedParserback to summary
public SMIMEEnvelopedParser(MimeBodyPart message) throws IOException, MessagingException, CMSException
SMIMEEnvelopedParserback to summary
public SMIMEEnvelopedParser(MimeMessage message) throws IOException, MessagingException, CMSException
SMIMEEnvelopedParserback to summary
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:MimeBodyPart

body part to be parsed.

bufferSize:int

bufferSoze to be used.

SMIMEEnvelopedParserback to summary
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:MimeMessage

message to be parsed.

bufferSize:int

bufferSoze to be used.

Method Detail

getEncryptedContentback to summary
public MimePart getEncryptedContent()
getInputStreamback to summary
private static InputStream getInputStream(Part bodyPart, int bufferSize) throws MessagingException