Class CMSProcessableInputStream

  • All Implemented Interfaces:
    org.bouncycastle.cms.CMSProcessable, org.bouncycastle.cms.CMSTypedData

    class CMSProcessableInputStream
    extends java.lang.Object
    implements org.bouncycastle.cms.CMSTypedData
    Wraps a InputStream into a CMSProcessable object for bouncy castle. It's a memory saving alternative to the CMSProcessableByteArray class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.asn1.ASN1ObjectIdentifier contentType  
      private java.io.InputStream in  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getContent()  
      org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()  
      void write​(java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • in

        private java.io.InputStream in
      • contentType

        private final org.bouncycastle.asn1.ASN1ObjectIdentifier contentType
    • Constructor Detail

      • CMSProcessableInputStream

        CMSProcessableInputStream​(java.io.InputStream is)
      • CMSProcessableInputStream

        CMSProcessableInputStream​(org.bouncycastle.asn1.ASN1ObjectIdentifier type,
                                  java.io.InputStream is)
    • Method Detail

      • getContent

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

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

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