org.bouncycastle.cms
Class CMSCompressedData
java.lang.Object
|
+--org.bouncycastle.cms.CMSCompressedData
- public class CMSCompressedData
- extends java.lang.Object
- implements org.bouncycastle.util.Encodable
containing class for an CMS Compressed Data object
CMSCompressedData cd = new CMSCompressedData(inputStream);
process(cd.getContent(new ZlibExpanderProvider()));
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CMSCompressedData
public CMSCompressedData(byte[] compressedData)
throws CMSException
CMSCompressedData
public CMSCompressedData(java.io.InputStream compressedData)
throws CMSException
CMSCompressedData
public CMSCompressedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
throws CMSException
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
getCompressedContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getCompressedContentType()
getContentStream
public CMSTypedStream getContentStream(org.bouncycastle.operator.InputExpanderProvider expanderProvider)
getContent
public byte[] getContent(org.bouncycastle.operator.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 interface org.bouncycastle.util.Encodable