public class CompressedData extends ASN1Encodable
CompressedData ::= SEQUENCE { version CMSVersion, compressionAlgorithm CompressionAlgorithmIdentifier, encapContentInfo EncapsulatedContentInfo }
BER, DER
Constructor and Description |
---|
CompressedData(AlgorithmIdentifier compressionAlgorithm,
ContentInfo encapContentInfo) |
CompressedData(ASN1Sequence seq) |
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getCompressionAlgorithmIdentifier() |
ContentInfo |
getEncapContentInfo() |
static CompressedData |
getInstance(ASN1TaggedObject _ato,
boolean _explicit)
return a CompressedData object from a tagged object.
|
static CompressedData |
getInstance(Object _obj)
return a CompressedData object from the given object.
|
DERInteger |
getVersion() |
DERObject |
toASN1Object() |
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public CompressedData(AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)
public CompressedData(ASN1Sequence seq)
public static CompressedData getInstance(ASN1TaggedObject _ato, boolean _explicit)
_ato
- the tagged object holding the object we want._explicit
- true if the object is meant to be explicitly
tagged false otherwise.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static CompressedData getInstance(Object _obj)
_obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public DERInteger getVersion()
public AlgorithmIdentifier getCompressionAlgorithmIdentifier()
public ContentInfo getEncapContentInfo()
public DERObject toASN1Object()
toASN1Object
in class ASN1Encodable
Copyright © 2015. All rights reserved.