Package org.bouncycastle.mail.smime
Class CMSProcessableBodyPartInbound
- java.lang.Object
-
- org.bouncycastle.mail.smime.CMSProcessableBodyPartInbound
-
- All Implemented Interfaces:
org.bouncycastle.cms.CMSProcessable
public class CMSProcessableBodyPartInbound extends java.lang.Object implements org.bouncycastle.cms.CMSProcessablea holding class for a BodyPart to be processed which does CRLF canonicalisation if dealing with non-binary data.
-
-
Constructor Summary
Constructors Constructor Description CMSProcessableBodyPartInbound(javax.mail.BodyPart bodyPart)Create a processable with the default transfer encoding of 7bitCMSProcessableBodyPartInbound(javax.mail.BodyPart bodyPart, java.lang.String defaultContentTransferEncoding)Create a processable with the a default transfer encoding of the passed in value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent()voidwrite(java.io.OutputStream out)
-
-
-
Constructor Detail
-
CMSProcessableBodyPartInbound
public CMSProcessableBodyPartInbound(javax.mail.BodyPart bodyPart)
Create a processable with the default transfer encoding of 7bit- Parameters:
bodyPart- body part to be processed
-
CMSProcessableBodyPartInbound
public CMSProcessableBodyPartInbound(javax.mail.BodyPart bodyPart, java.lang.String defaultContentTransferEncoding)Create a processable with the a default transfer encoding of the passed in value.- Parameters:
bodyPart- body part to be processeddefaultContentTransferEncoding- the new default to use.
-
-
Method Detail
-
write
public void write(java.io.OutputStream out) throws java.io.IOException, org.bouncycastle.cms.CMSException- Specified by:
writein interfaceorg.bouncycastle.cms.CMSProcessable- Throws:
java.io.IOExceptionorg.bouncycastle.cms.CMSException
-
getContent
public java.lang.Object getContent()
- Specified by:
getContentin interfaceorg.bouncycastle.cms.CMSProcessable
-
-