what-the-bank/sources/org/bouncycastle/asn1/cms/ContentInfoParser.java

31 lines
1.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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();
}
}