Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class CompressedData

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier

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

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private ContentInfo
private ASN1Integer

Constructor Summary

AccessConstructor and Description
public
CompressedData(AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)

private

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public ContentInfo
public static CompressedData
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
ato
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
isExplicit
)

Return a CompressedData object from a tagged object.

public static CompressedData
getInstance(Object
the object we want converted.
obj
)

Return a CompressedData object from the given object.

public ASN1Integer
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

compressionAlgorithmback to summary
private AlgorithmIdentifier compressionAlgorithm
encapContentInfoback to summary
private ContentInfo encapContentInfo
versionback to summary
private ASN1Integer version

Constructor Detail

CompressedDataback to summary
public CompressedData(AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)
CompressedDataback to summary
private CompressedData(ASN1Sequence seq)

Method Detail

getCompressionAlgorithmIdentifierback to summary
public AlgorithmIdentifier getCompressionAlgorithmIdentifier()
getEncapContentInfoback to summary
public ContentInfo getEncapContentInfo()
getInstanceback to summary
public static CompressedData getInstance(ASN1TaggedObject ato, boolean isExplicit)

Return a CompressedData object from a tagged object.

Parameters
ato:ASN1TaggedObject

the tagged object holding the object we want.

isExplicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static CompressedData getInstance(Object obj)

Return a CompressedData object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getVersionback to summary
public ASN1Integer getVersion()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.