public class CompressedData
extends org.bouncycastle.asn1.ASN1Object
CompressedData ::= SEQUENCE { version CMSVersion, compressionAlgorithm CompressionAlgorithmIdentifier, encapContentInfo EncapsulatedContentInfo }
Constructor and Description |
---|
CompressedData(org.bouncycastle.asn1.x509.AlgorithmIdentifier compressionAlgorithm,
ContentInfo encapContentInfo) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getCompressionAlgorithmIdentifier() |
ContentInfo |
getEncapContentInfo() |
static CompressedData |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject ato,
boolean isExplicit)
Return a CompressedData object from a tagged object.
|
static CompressedData |
getInstance(java.lang.Object obj)
Return a CompressedData object from the given object.
|
org.bouncycastle.asn1.ASN1Integer |
getVersion() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public CompressedData(org.bouncycastle.asn1.x509.AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)
public static CompressedData getInstance(org.bouncycastle.asn1.ASN1TaggedObject ato, boolean isExplicit)
ato
- the tagged object holding the object we want.isExplicit
- true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static CompressedData getInstance(java.lang.Object obj)
Accepted inputs:
CompressedData
object
ASN1Sequence
input formats with CompressedData structure inside
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.ASN1Integer getVersion()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getCompressionAlgorithmIdentifier()
public ContentInfo getEncapContentInfo()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object