Class ApplicationPkcs7MimeEnvelopedDataEntity

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.ApplicationPkcs7MimeEnvelopedDataEntity
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity

public class ApplicationPkcs7MimeEnvelopedDataEntity extends MimeEntity
  • Constructor Details

    • ApplicationPkcs7MimeEnvelopedDataEntity

      public ApplicationPkcs7MimeEnvelopedDataEntity(MimeEntity entity2Encrypt, org.bouncycastle.cms.CMSEnvelopedDataGenerator dataGenerator, org.bouncycastle.operator.OutputEncryptor encryptor, String encryptedContentTransferEncoding, boolean isMainBody) throws org.apache.hc.core5.http.HttpException
      Throws:
      org.apache.hc.core5.http.HttpException
    • ApplicationPkcs7MimeEnvelopedDataEntity

      public ApplicationPkcs7MimeEnvelopedDataEntity(byte[] encryptedData, String encryptedContentTransferEncoding, boolean isMainBody)
  • Method Details

    • 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
    • getEncryptedEntity

      public MimeEntity getEncryptedEntity(PrivateKey privateKey) throws org.apache.hc.core5.http.HttpException
      Throws:
      org.apache.hc.core5.http.HttpException
    • close

      public void close() throws IOException
      Throws:
      IOException