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

48 lines
1.5 KiB
Java

package org.bouncycastle.asn1.esf;
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 SigPolicyQualifiers extends ASN1Object {
ASN1Sequence qualifiers;
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
public ASN1Primitive toASN1Primitive() {
return this.qualifiers;
}
public int size() {
return this.qualifiers.size();
}
public SigPolicyQualifierInfo getInfoAt(int i) {
return SigPolicyQualifierInfo.getInstance(this.qualifiers.getObjectAt(i));
}
public static SigPolicyQualifiers getInstance(Object obj) {
if (obj instanceof SigPolicyQualifiers) {
return (SigPolicyQualifiers) obj;
}
if (obj instanceof ASN1Sequence) {
return new SigPolicyQualifiers(ASN1Sequence.getInstance(obj));
}
return null;
}
public SigPolicyQualifiers(SigPolicyQualifierInfo[] sigPolicyQualifierInfoArr) {
ASN1EncodableVector aSN1EncodableVector = new ASN1EncodableVector();
for (SigPolicyQualifierInfo sigPolicyQualifierInfo : sigPolicyQualifierInfoArr) {
aSN1EncodableVector.add(sigPolicyQualifierInfo);
}
this.qualifiers = new DERSequence(aSN1EncodableVector);
}
private SigPolicyQualifiers(ASN1Sequence aSN1Sequence) {
this.qualifiers = aSN1Sequence;
}
}