54 lines
1.7 KiB
Java
54 lines
1.7 KiB
Java
|
package org.bouncycastle.asn1.cmp;
|
||
|
|
||
|
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 PollReqContent extends ASN1Object {
|
||
|
private ASN1Sequence content;
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
|
||
|
public ASN1Primitive toASN1Primitive() {
|
||
|
return this.content;
|
||
|
}
|
||
|
|
||
|
public ASN1Integer[][] getCertReqIds() {
|
||
|
int size = this.content.size();
|
||
|
ASN1Integer[][] aSN1IntegerArr = new ASN1Integer[size];
|
||
|
for (int i = 0; i != size; i++) {
|
||
|
aSN1IntegerArr[i] = sequenceToASN1IntegerArray((ASN1Sequence) this.content.getObjectAt(i));
|
||
|
}
|
||
|
return aSN1IntegerArr;
|
||
|
}
|
||
|
|
||
|
private static ASN1Integer[] sequenceToASN1IntegerArray(ASN1Sequence aSN1Sequence) {
|
||
|
int size = aSN1Sequence.size();
|
||
|
ASN1Integer[] aSN1IntegerArr = new ASN1Integer[size];
|
||
|
for (int i = 0; i != size; i++) {
|
||
|
aSN1IntegerArr[i] = ASN1Integer.getInstance(aSN1Sequence.getObjectAt(i));
|
||
|
}
|
||
|
return aSN1IntegerArr;
|
||
|
}
|
||
|
|
||
|
public static PollReqContent getInstance(Object obj) {
|
||
|
if (obj instanceof PollReqContent) {
|
||
|
return (PollReqContent) obj;
|
||
|
}
|
||
|
if (obj != null) {
|
||
|
return new PollReqContent(ASN1Sequence.getInstance(obj));
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
private PollReqContent(ASN1Sequence aSN1Sequence) {
|
||
|
this.content = aSN1Sequence;
|
||
|
}
|
||
|
|
||
|
public PollReqContent(ASN1Integer aSN1Integer) {
|
||
|
this(new DERSequence(new DERSequence(aSN1Integer)));
|
||
|
}
|
||
|
}
|