Class ApplicationPkcs7SignatureEntity

java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
org.apache.camel.component.as2.api.entity.MimeEntity
org.apache.camel.component.as2.api.entity.ApplicationPkcs7SignatureEntity
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity

public class ApplicationPkcs7SignatureEntity extends MimeEntity
  • Constructor Details

    • ApplicationPkcs7SignatureEntity

      public ApplicationPkcs7SignatureEntity(MimeEntity data, org.bouncycastle.cms.CMSSignedDataGenerator signer, String charset, String contentTransferEncoding, boolean isMainBody) throws org.apache.hc.core5.http.HttpException
      Throws:
      org.apache.hc.core5.http.HttpException
    • ApplicationPkcs7SignatureEntity

      public ApplicationPkcs7SignatureEntity(byte[] signature, String charset, String contentTransferEncoding, boolean isMainBody)
  • Method Details

    • getSignature

      public byte[] getSignature()
    • writeTo

      public void writeTo(OutputStream outstream) throws IOException
      Specified by:
      writeTo in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      writeTo in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
      Throws:
      IOException
    • close

      public void close() throws IOException
      Throws:
      IOException