Class CMSProcessableInputStream

java.lang.Object
se.idsec.signservice.security.sign.pdf.utils.CMSProcessableInputStream
All Implemented Interfaces:
org.bouncycastle.cms.CMSProcessable, org.bouncycastle.cms.CMSTypedData

public class CMSProcessableInputStream extends Object implements org.bouncycastle.cms.CMSTypedData
Wraps an InputStream into a CMSProcessable object for Bouncy Castle. It's an alternative to the CMSProcessableByteArray.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • CMSProcessableInputStream

      public CMSProcessableInputStream(InputStream is)
      Constructor that defaults to use the 1.2.840.113549.1.7.1 OID (PKCS#7 data).
      Parameters:
      is - the input stream
    • CMSProcessableInputStream

      public CMSProcessableInputStream(org.bouncycastle.asn1.ASN1ObjectIdentifier type, InputStream is)
      Constructor.
      Parameters:
      type - the OID of the object
      is - the input stream
  • Method Details

    • getContent

      public Object getContent()
      Specified by:
      getContent in interface org.bouncycastle.cms.CMSProcessable
    • write

      public void write(OutputStream out) throws IOException
      Specified by:
      write in interface org.bouncycastle.cms.CMSProcessable
      Throws:
      IOException
    • getContentType

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
      Specified by:
      getContentType in interface org.bouncycastle.cms.CMSTypedData