what-the-bank/sources/org/bouncycastle/asn1/esf/CrlListID.java

50 lines
1.6 KiB
Java

package org.bouncycastle.asn1.esf;
import java.util.Enumeration;
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 CrlListID extends ASN1Object {
private ASN1Sequence crls;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return new DERSequence(this.crls);
}
public CrlValidatedID[] getCrls() {
int size = this.crls.size();
CrlValidatedID[] crlValidatedIDArr = new CrlValidatedID[size];
for (int i = 0; i < size; i++) {
crlValidatedIDArr[i] = CrlValidatedID.getInstance(this.crls.getObjectAt(i));
}
return crlValidatedIDArr;
}
public static CrlListID getInstance(Object obj) {
if (obj instanceof CrlListID) {
return (CrlListID) obj;
}
if (obj != null) {
return new CrlListID(ASN1Sequence.getInstance(obj));
}
return null;
}
public CrlListID(CrlValidatedID[] crlValidatedIDArr) {
this.crls = new DERSequence(crlValidatedIDArr);
}
private CrlListID(ASN1Sequence aSN1Sequence) {
ASN1Sequence aSN1Sequence2 = (ASN1Sequence) aSN1Sequence.getObjectAt(0);
this.crls = aSN1Sequence2;
Enumeration objects = aSN1Sequence2.getObjects();
while (objects.hasMoreElements()) {
CrlValidatedID.getInstance(objects.nextElement());
}
}
}