45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package org.bouncycastle.asn1.cmp;
|
|
|
|
import org.bouncycastle.asn1.ASN1Object;
|
|
import org.bouncycastle.asn1.ASN1Primitive;
|
|
import org.bouncycastle.asn1.ASN1Sequence;
|
|
import org.bouncycastle.asn1.DERSequence;
|
|
import org.bouncycastle.asn1.x509.CertificateList;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public class CRLAnnContent extends ASN1Object {
|
|
private ASN1Sequence content;
|
|
|
|
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
|
|
public ASN1Primitive toASN1Primitive() {
|
|
return this.content;
|
|
}
|
|
|
|
public CertificateList[] getCertificateLists() {
|
|
int size = this.content.size();
|
|
CertificateList[] certificateListArr = new CertificateList[size];
|
|
for (int i = 0; i != size; i++) {
|
|
certificateListArr[i] = CertificateList.getInstance(this.content.getObjectAt(i));
|
|
}
|
|
return certificateListArr;
|
|
}
|
|
|
|
public static CRLAnnContent getInstance(Object obj) {
|
|
if (obj instanceof CRLAnnContent) {
|
|
return (CRLAnnContent) obj;
|
|
}
|
|
if (obj != null) {
|
|
return new CRLAnnContent(ASN1Sequence.getInstance(obj));
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public CRLAnnContent(CertificateList certificateList) {
|
|
this.content = new DERSequence(certificateList);
|
|
}
|
|
|
|
private CRLAnnContent(ASN1Sequence aSN1Sequence) {
|
|
this.content = aSN1Sequence;
|
|
}
|
|
}
|