Class CompressedData

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class CompressedData
    extends ASN1Object
    RFC 3274: CMS Compressed Data.
     CompressedData ::= SEQUENCE {
         version CMSVersion,
         compressionAlgorithm CompressionAlgorithmIdentifier,
         encapContentInfo EncapsulatedContentInfo
     }
     
    • Method Detail

      • getInstance

        public static CompressedData getInstance​(ASN1TaggedObject ato,
                                                 boolean isExplicit)
        Return a CompressedData object from a tagged object.
        Parameters:
        ato - the tagged object holding the object we want.
        isExplicit - true if the object is meant to be explicitly tagged false otherwise.
        Throws:
        java.lang.IllegalArgumentException - if the object held by the tagged object cannot be converted.
      • getInstance

        public static CompressedData getInstance​(java.lang.Object obj)
        Return a CompressedData object from the given object.

        Accepted inputs:

        Parameters:
        obj - the object we want converted.
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.
      • getCompressionAlgorithmIdentifier

        public AlgorithmIdentifier getCompressionAlgorithmIdentifier()
      • getEncapContentInfo

        public ContentInfo getEncapContentInfo()