Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class CMSCompressedData

extends Object
implements Encodable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Encodable
Imports
java.io.IOException, .InputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, .ASN1OctetString, org.bouncycastle.asn1.cms.CompressedData, .ContentInfo, org.bouncycastle.operator.InputExpander, .InputExpanderProvider, org.bouncycastle.util.Encodable

containing class for an CMS Compressed Data object
    CMSCompressedData cd = new CMSCompressedData(inputStream);

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

Field Summary

Modifier and TypeField and Description
pack-priv CompressedData
pack-priv ContentInfo

Constructor Summary

AccessConstructor and Description
public
CMSCompressedData(byte[] compressedData)

public
public

Method Summary

Modifier and TypeMethod and Description
public ASN1ObjectIdentifier
public byte[]

Returns:

the uncompressed content
getContent
(InputExpanderProvider
a provider of expander algorithm implementations.
expanderProvider
)

Return the uncompressed content.

public CMSTypedStream
public ASN1ObjectIdentifier
public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

return the ASN.1 encoded representation of this object.
public ContentInfo
toASN1Structure()

return the ContentInfo

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

comDataback to summary
pack-priv CompressedData comData
contentInfoback to summary
pack-priv ContentInfo contentInfo

Constructor Detail

CMSCompressedDataback to summary
public CMSCompressedData(byte[] compressedData) throws CMSException
CMSCompressedDataback to summary
public CMSCompressedData(InputStream compressedData) throws CMSException
CMSCompressedDataback to summary
public CMSCompressedData(ContentInfo contentInfo) throws CMSException

Method Detail

getCompressedContentTypeback to summary
public ASN1ObjectIdentifier getCompressedContentType()
getContentback to summary
public byte[] getContent(InputExpanderProvider expanderProvider) throws CMSException

Return the uncompressed content.

Parameters
expanderProvider:InputExpanderProvider

a provider of expander algorithm implementations.

Returns:byte[]

the uncompressed content

Exceptions
CMSException:
if there is an exception un-compressing the data.
getContentStreamback to summary
public CMSTypedStream getContentStream(InputExpanderProvider expanderProvider)
getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()
getEncodedback to summary
public byte[] getEncoded() throws IOException

Implements org.bouncycastle.util.Encodable.getEncoded.

return the ASN.1 encoded representation of this object.

Returns:byte[]

Doc from org.bouncycastle.util.Encodable.getEncoded.

a byte array representing the encoding.

Exceptions
IOException:

Doc from org.bouncycastle.util.Encodable.getEncoded.

if an issue arises generation the encoding.

toASN1Structureback to summary
public ContentInfo toASN1Structure()

return the ContentInfo