Package org.bouncycastle.mime.smime
Class SMimeParserListener
java.lang.Object
org.bouncycastle.mime.smime.SMimeParserListener
- All Implemented Interfaces:
MimeParserListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontent(MimeParserContext parserContext, Headers headers, InputStream inputStream) createContext(MimeParserContext parserContext, Headers headers) Create an appropriate context object for the MIME object represented by headers.voidenvelopedData(MimeParserContext parserContext, Headers headers, OriginatorInformation originatorInformation, RecipientInformationStore recipients) voidobject(MimeParserContext parserContext, Headers headers, InputStream inputStream) Signal that a MIME object has been discovered.voidsignedData(MimeParserContext parserContext, Headers headers, org.bouncycastle.util.Store certificates, org.bouncycastle.util.Store CRLs, org.bouncycastle.util.Store attributeCertificates, SignerInformationStore signers)
-
Constructor Details
-
SMimeParserListener
public SMimeParserListener()
-
-
Method Details
-
createContext
Description copied from interface:MimeParserListenerCreate an appropriate context object for the MIME object represented by headers.- Specified by:
createContextin interfaceMimeParserListener- Parameters:
parserContext- context object for the current parser.headers- MIME headers for the object that has been discovered.- Returns:
- a MimeContext
-
object
public void object(MimeParserContext parserContext, Headers headers, InputStream inputStream) throws IOException Description copied from interface:MimeParserListenerSignal that a MIME object has been discovered.- Specified by:
objectin interfaceMimeParserListener- Parameters:
parserContext- context object for the current parser.headers- headers for the MIME object.inputStream- input stream representing its content.- Throws:
IOException- in case of a parsing/processing error.
-
content
public void content(MimeParserContext parserContext, Headers headers, InputStream inputStream) throws IOException - Throws:
IOException
-
signedData
public void signedData(MimeParserContext parserContext, Headers headers, org.bouncycastle.util.Store certificates, org.bouncycastle.util.Store CRLs, org.bouncycastle.util.Store attributeCertificates, SignerInformationStore signers) throws IOException, CMSException - Throws:
IOExceptionCMSException
-
envelopedData
public void envelopedData(MimeParserContext parserContext, Headers headers, OriginatorInformation originatorInformation, RecipientInformationStore recipients) throws IOException, CMSException - Throws:
IOExceptionCMSException
-