what-the-bank/sources/org/bouncycastle/asn1/crmf/CertReqMessages.java

53 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1.crmf;
import org.bouncycastle.asn1.ASN1EncodableVector;
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 CertReqMessages extends ASN1Object {
private ASN1Sequence content;
public CertReqMsg[] toCertReqMsgArray() {
int size = this.content.size();
CertReqMsg[] certReqMsgArr = new CertReqMsg[size];
for (int i = 0; i != size; i++) {
certReqMsgArr[i] = CertReqMsg.getInstance(this.content.getObjectAt(i));
}
return certReqMsgArr;
}
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return this.content;
}
public static CertReqMessages getInstance(Object obj) {
if (obj instanceof CertReqMessages) {
return (CertReqMessages) obj;
}
if (obj != null) {
return new CertReqMessages(ASN1Sequence.getInstance(obj));
}
return null;
}
public CertReqMessages(CertReqMsg[] certReqMsgArr) {
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
for (CertReqMsg certReqMsg : certReqMsgArr) {
aSN1EncodableVector.add(certReqMsg);
}
this.content = new DERSequence(aSN1EncodableVector);
}
public CertReqMessages(CertReqMsg certReqMsg) {
this.content = new DERSequence(certReqMsg);
}
private CertReqMessages(ASN1Sequence aSN1Sequence) {
this.content = aSN1Sequence;
}
}