org.bouncycastle.asn1.cms

Class CompressedData

Implemented Interfaces:
DEREncodable

public class CompressedData
extends ASN1Encodable

RFC 3274 - CMS Compressed Data.
 CompressedData ::= SEQUENCE {
  version CMSVersion,
  compressionAlgorithm CompressionAlgorithmIdentifier,
  encapContentInfo EncapsulatedContentInfo
 }
 

Constructor Summary

CompressedData(ASN1Sequence seq)
CompressedData(AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)

Method Summary

AlgorithmIdentifier
getCompressionAlgorithmIdentifier()
ContentInfo
getEncapContentInfo()
static CompressedData
getInstance(Object _obj)
return a CompressedData object from the given object.
static CompressedData
getInstance(ASN1TaggedObject _ato, boolean _explicit)
return a CompressedData object from a tagged object.
DERInteger
getVersion()
DERObject
toASN1Object()

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

CompressedData

public CompressedData(ASN1Sequence seq)


CompressedData

public CompressedData(AlgorithmIdentifier compressionAlgorithm,
                      ContentInfo encapContentInfo)

Method Details

getCompressionAlgorithmIdentifier

public AlgorithmIdentifier getCompressionAlgorithmIdentifier()


getEncapContentInfo

public ContentInfo getEncapContentInfo()


getInstance

public static CompressedData getInstance(Object _obj)
return a CompressedData object from the given object.

Parameters:
_obj - the object we want converted.


getInstance

public static CompressedData getInstance(ASN1TaggedObject _ato,
                                         boolean _explicit)
return a CompressedData object from a tagged object.

Parameters:
_ato - the tagged object holding the object we want.
_explicit - true if the object is meant to be explicitly tagged false otherwise.


getVersion

public DERInteger getVersion()


toASN1Object

public DERObject toASN1Object()
Overrides:
toASN1Object in interface ASN1Encodable