Bouncy Castle Cryptography Library 1.81

org.bouncycastle.mail.smime
Class CMSProcessableBodyPartOutbound

java.lang.Object
  extended byorg.bouncycastle.mail.smime.CMSProcessableBodyPartOutbound
All Implemented Interfaces:
org.bouncycastle.cms.CMSProcessable

public class CMSProcessableBodyPartOutbound
extends java.lang.Object
implements org.bouncycastle.cms.CMSProcessable

a holding class for a BodyPart to be processed which does CRLF canocicalisation if dealing with non-binary data.


Constructor Summary
CMSProcessableBodyPartOutbound(javax.mail.BodyPart bodyPart)
          Create a processable with the default transfer encoding of 7bit
CMSProcessableBodyPartOutbound(javax.mail.BodyPart bodyPart, java.lang.String defaultContentTransferEncoding)
          Create a processable with the a default transfer encoding of the passed in value.
 
Method Summary
 java.lang.Object getContent()
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSProcessableBodyPartOutbound

public CMSProcessableBodyPartOutbound(javax.mail.BodyPart bodyPart)
Create a processable with the default transfer encoding of 7bit

Parameters:
bodyPart - body part to be processed

CMSProcessableBodyPartOutbound

public CMSProcessableBodyPartOutbound(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 processed
defaultContentTransferEncoding - 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:
write in interface org.bouncycastle.cms.CMSProcessable
Throws:
java.io.IOException
org.bouncycastle.cms.CMSException

getContent

public java.lang.Object getContent()
Specified by:
getContent in interface org.bouncycastle.cms.CMSProcessable

Bouncy Castle Cryptography Library 1.81