Package org.bouncycastle.mime.smime
Class SMimeParserListener
- java.lang.Object
-
- org.bouncycastle.mime.smime.SMimeParserListener
-
- All Implemented Interfaces:
MimeParserListener
public abstract class SMimeParserListener extends Object implements MimeParserListener
-
-
Constructor Summary
Constructors Constructor Description SMimeParserListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
content(MimeParserContext parserContext, Headers headers, InputStream inputStream)
MimeContext
createContext(MimeParserContext parserContext, Headers headers)
Create an appropriate context object for the MIME object represented by headers.void
envelopedData(MimeParserContext parserContext, Headers headers, OriginatorInformation originatorInformation, RecipientInformationStore recipients)
void
object(MimeParserContext parserContext, Headers headers, InputStream inputStream)
Signal that a MIME object has been discovered.void
signedData(MimeParserContext parserContext, Headers headers, org.bouncycastle.util.Store certificates, org.bouncycastle.util.Store CRLs, org.bouncycastle.util.Store attributeCertificates, SignerInformationStore signers)
-
-
-
Method Detail
-
createContext
public MimeContext createContext(MimeParserContext parserContext, Headers headers)
Description copied from interface:MimeParserListener
Create an appropriate context object for the MIME object represented by headers.- Specified by:
createContext
in 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:MimeParserListener
Signal that a MIME object has been discovered.- Specified by:
object
in 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:
IOException
CMSException
-
envelopedData
public void envelopedData(MimeParserContext parserContext, Headers headers, OriginatorInformation originatorInformation, RecipientInformationStore recipients) throws IOException, CMSException
- Throws:
IOException
CMSException
-
-