public class

CMSCompressedData

extends Object
java.lang.Object
   ↳ org.bouncycastle.cms.CMSCompressedData
Known Direct Subclasses

Class Overview

containing class for an CMS Compressed Data object

     CMSCompressedData cd = new CMSCompressedData(inputStream);

     process(cd.getContent(new ZlibExpanderProvider()));
 

Summary

Public Constructors
CMSCompressedData(byte[] compressedData)
CMSCompressedData(InputStream compressedData)
CMSCompressedData(ContentInfo contentInfo)
Public Methods
byte[] getContent(int limit)
This method is deprecated. use getContent(InputExpanderProvider)
byte[] getContent(InputExpanderProvider expanderProvider)
Return the uncompressed content.
byte[] getContent()
This method is deprecated. use getContent(InputExpanderProvider)
ContentInfo getContentInfo()
return the ContentInfo
ASN1ObjectIdentifier getContentType()
byte[] getEncoded()
return the ASN.1 encoded representation of this object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CMSCompressedData (byte[] compressedData)

Throws
CMSException

public CMSCompressedData (InputStream compressedData)

Throws
CMSException

public CMSCompressedData (ContentInfo contentInfo)

Throws
CMSException

Public Methods

public byte[] getContent (int limit)

This method is deprecated.
use getContent(InputExpanderProvider)

Return the uncompressed content, throwing an exception if the data size is greater than the passed in limit. If the content is exceeded getCause() on the CMSException will contain a StreamOverflowException

Parameters
limit maximum number of bytes to read
Returns
  • the content read
Throws
CMSException if there is an exception uncompressing the data.

public byte[] getContent (InputExpanderProvider expanderProvider)

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.

public byte[] getContent ()

This method is deprecated.
use getContent(InputExpanderProvider)

Return the uncompressed content.

Returns
  • the uncompressed content
Throws
CMSException if there is an exception uncompressing the data.

public ContentInfo getContentInfo ()

return the ContentInfo

public ASN1ObjectIdentifier getContentType ()

public byte[] getEncoded ()

return the ASN.1 encoded representation of this object.

Throws
IOException