Class CMSCompressedData

java.lang.Object
org.bouncycastle.cms.CMSCompressedData
All Implemented Interfaces:
Encodable

public class CMSCompressedData extends Object implements Encodable
containing class for an CMS Compressed Data object
     CMSCompressedData cd = new CMSCompressedData(inputStream);

     process(cd.getContent(new ZlibExpanderProvider()));
 
  • Constructor Details

  • Method Details

    • getContentType

      public ASN1ObjectIdentifier getContentType()
    • getCompressedContentType

      public ASN1ObjectIdentifier getCompressedContentType()
    • getContentStream

      public CMSTypedStream getContentStream(InputExpanderProvider expanderProvider)
    • getContent

      public byte[] getContent(InputExpanderProvider expanderProvider) throws CMSException
      Return the uncompressed content.
      Parameters:
      expanderProvider - a provider of expander algorithm implementations.
      Returns:
      the uncompressed content
      Throws:
      CMSException - if there is an exception un-compressing the data.
    • toASN1Structure

      public org.bouncycastle.asn1.cms.ContentInfo toASN1Structure()
      return the ContentInfo
    • getEncoded

      public byte[] getEncoded() throws IOException
      return the ASN.1 encoded representation of this object.
      Specified by:
      getEncoded in interface Encodable
      Returns:
      a byte array representing the encoding.
      Throws:
      IOException - if an issue arises generation the encoding.