diff options
Diffstat (limited to 'libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/cms/CompressedDataParser.java')
-rw-r--r-- | libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/cms/CompressedDataParser.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/cms/CompressedDataParser.java b/libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/cms/CompressedDataParser.java deleted file mode 100644 index 913cecb8b..000000000 --- a/libraries/spongycastle/core/src/main/java/org/spongycastle/asn1/cms/CompressedDataParser.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.spongycastle.asn1.cms; - -import java.io.IOException; - -import org.spongycastle.asn1.ASN1Integer; -import org.spongycastle.asn1.ASN1SequenceParser; -import org.spongycastle.asn1.x509.AlgorithmIdentifier; - -/** - * Parser of <a href="http://tools.ietf.org/html/rfc3274">RFC 3274</a> {@link CompressedData} object. - * <p> - * <pre> - * CompressedData ::= SEQUENCE { - * version CMSVersion, - * compressionAlgorithm CompressionAlgorithmIdentifier, - * encapContentInfo EncapsulatedContentInfo - * } - * </pre> - */ -public class CompressedDataParser -{ - private ASN1Integer _version; - private AlgorithmIdentifier _compressionAlgorithm; - private ContentInfoParser _encapContentInfo; - - public CompressedDataParser( - ASN1SequenceParser seq) - throws IOException - { - this._version = (ASN1Integer)seq.readObject(); - this._compressionAlgorithm = AlgorithmIdentifier.getInstance(seq.readObject().toASN1Primitive()); - this._encapContentInfo = new ContentInfoParser((ASN1SequenceParser)seq.readObject()); - } - - public ASN1Integer getVersion() - { - return _version; - } - - public AlgorithmIdentifier getCompressionAlgorithmIdentifier() - { - return _compressionAlgorithm; - } - - public ContentInfoParser getEncapContentInfo() - { - return _encapContentInfo; - } -} |