31 lines
1.0 KiB
Java
31 lines
1.0 KiB
Java
|
package org.bouncycastle.asn1.cms;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import org.bouncycastle.asn1.ASN1Encodable;
|
||
|
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
|
||
|
import org.bouncycastle.asn1.ASN1SequenceParser;
|
||
|
import org.bouncycastle.asn1.ASN1TaggedObjectParser;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class ContentInfoParser {
|
||
|
private ASN1TaggedObjectParser content;
|
||
|
private ASN1ObjectIdentifier contentType;
|
||
|
|
||
|
public ASN1ObjectIdentifier getContentType() {
|
||
|
return this.contentType;
|
||
|
}
|
||
|
|
||
|
public ASN1Encodable getContent(int i) throws IOException {
|
||
|
ASN1TaggedObjectParser aSN1TaggedObjectParser = this.content;
|
||
|
if (aSN1TaggedObjectParser != null) {
|
||
|
return aSN1TaggedObjectParser.getObjectParser(i, true);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public ContentInfoParser(ASN1SequenceParser aSN1SequenceParser) throws IOException {
|
||
|
this.contentType = (ASN1ObjectIdentifier) aSN1SequenceParser.readObject();
|
||
|
this.content = (ASN1TaggedObjectParser) aSN1SequenceParser.readObject();
|
||
|
}
|
||
|
}
|