what-the-bank/sources/org/bouncycastle/asn1/cmp/PKIMessages.java

53 lines
1.6 KiB
Java
Raw Normal View History

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