Class CMSProcessableBodyPartInbound

java.lang.Object
org.spongycastle.mail.smime.CMSProcessableBodyPartInbound
All Implemented Interfaces:
org.spongycastle.cms.CMSProcessable

public class CMSProcessableBodyPartInbound extends Object implements org.spongycastle.cms.CMSProcessable
a holding class for a BodyPart to be processed which does CRLF canonicalisation if dealing with non-binary data.
  • Constructor Details

    • CMSProcessableBodyPartInbound

      public CMSProcessableBodyPartInbound(jakarta.mail.BodyPart bodyPart)
      Create a processable with the default transfer encoding of 7bit
      Parameters:
      bodyPart - body part to be processed
    • CMSProcessableBodyPartInbound

      public CMSProcessableBodyPartInbound(jakarta.mail.BodyPart bodyPart, 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 Details

    • write

      public void write(OutputStream out) throws IOException, org.spongycastle.cms.CMSException
      Specified by:
      write in interface org.spongycastle.cms.CMSProcessable
      Throws:
      IOException
      org.spongycastle.cms.CMSException
    • getContent

      public Object getContent()
      Specified by:
      getContent in interface org.spongycastle.cms.CMSProcessable