package org.bouncycastle.asn1.crmf; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Integer; import org.bouncycastle.asn1.ASN1Object; import org.bouncycastle.asn1.ASN1Primitive; import org.bouncycastle.asn1.ASN1Sequence; import org.bouncycastle.asn1.DERSequence; /* loaded from: classes6.dex */ public class PKIPublicationInfo extends ASN1Object { private ASN1Integer action; private ASN1Sequence pubInfos; @Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable public ASN1Primitive toASN1Primitive() { ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector(); aSN1EncodableVector.add(this.action); aSN1EncodableVector.add(this.pubInfos); return new DERSequence(aSN1EncodableVector); } public SinglePubInfo[] getPubInfos() { ASN1Sequence aSN1Sequence = this.pubInfos; if (aSN1Sequence == null) { return null; } int size = aSN1Sequence.size(); SinglePubInfo[] singlePubInfoArr = new SinglePubInfo[size]; for (int i = 0; i != size; i++) { singlePubInfoArr[i] = SinglePubInfo.getInstance(this.pubInfos.getObjectAt(i)); } return singlePubInfoArr; } public ASN1Integer getAction() { return this.action; } public static PKIPublicationInfo getInstance(Object obj) { if (obj instanceof PKIPublicationInfo) { return (PKIPublicationInfo) obj; } if (obj != null) { return new PKIPublicationInfo(ASN1Sequence.getInstance(obj)); } return null; } private PKIPublicationInfo(ASN1Sequence aSN1Sequence) { this.action = ASN1Integer.getInstance(aSN1Sequence.getObjectAt(0)); this.pubInfos = ASN1Sequence.getInstance(aSN1Sequence.getObjectAt(1)); } }