Package org.bouncycastle.cms
Class CMSCompressedData
- java.lang.Object
-
- org.bouncycastle.cms.CMSCompressedData
-
- All Implemented Interfaces:
org.bouncycastle.util.Encodable
public class CMSCompressedData extends java.lang.Object implements org.bouncycastle.util.Encodable
containing class for an CMS Compressed Data objectCMSCompressedData cd = new CMSCompressedData(inputStream); process(cd.getContent(new ZlibExpanderProvider()));
-
-
Constructor Summary
Constructors Constructor Description CMSCompressedData(byte[] compressedData)
CMSCompressedData(java.io.InputStream compressedData)
CMSCompressedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getContent(InputExpanderProvider expanderProvider)
Return the uncompressed content.org.bouncycastle.asn1.ASN1ObjectIdentifier
getContentType()
byte[]
getEncoded()
return the ASN.1 encoded representation of this object.org.bouncycastle.asn1.cms.ContentInfo
toASN1Structure()
return the ContentInfo
-
-
-
Constructor Detail
-
CMSCompressedData
public CMSCompressedData(byte[] compressedData) throws CMSException
- Throws:
CMSException
-
CMSCompressedData
public CMSCompressedData(java.io.InputStream compressedData) throws CMSException
- Throws:
CMSException
-
CMSCompressedData
public CMSCompressedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo) throws CMSException
- Throws:
CMSException
-
-
Method Detail
-
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
-
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 java.io.IOException
return the ASN.1 encoded representation of this object.- Specified by:
getEncoded
in interfaceorg.bouncycastle.util.Encodable
- Throws:
java.io.IOException
-
-