package org.bouncycastle.asn1.x509;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class AttCertIssuer extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice {
    org.bouncycastle.asn1.ASN1Encodable a;
    org.bouncycastle.asn1.ASN1Primitive b;

    public AttCertIssuer(org.bouncycastle.asn1.x509.GeneralNames generalNames) {
        this.a = generalNames;
        this.b = generalNames.j();
    }

    public static org.bouncycastle.asn1.x509.AttCertIssuer n(java.lang.Object obj) {
        if (obj == null || (obj instanceof org.bouncycastle.asn1.x509.AttCertIssuer)) {
            return (org.bouncycastle.asn1.x509.AttCertIssuer) obj;
        }
        if (obj instanceof org.bouncycastle.asn1.x509.V2Form) {
            return new org.bouncycastle.asn1.x509.AttCertIssuer(org.bouncycastle.asn1.x509.V2Form.o(obj));
        }
        if (obj instanceof org.bouncycastle.asn1.x509.GeneralNames) {
            return new org.bouncycastle.asn1.x509.AttCertIssuer((org.bouncycastle.asn1.x509.GeneralNames) obj);
        }
        if (obj instanceof org.bouncycastle.asn1.ASN1TaggedObject) {
            return new org.bouncycastle.asn1.x509.AttCertIssuer(org.bouncycastle.asn1.x509.V2Form.p((org.bouncycastle.asn1.ASN1TaggedObject) obj, false));
        }
        if (obj instanceof org.bouncycastle.asn1.ASN1Sequence) {
            return new org.bouncycastle.asn1.x509.AttCertIssuer(org.bouncycastle.asn1.x509.GeneralNames.o(obj));
        }
        throw new java.lang.IllegalArgumentException("unknown object in factory: " + obj.getClass().getName());
    }

    @Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
    public org.bouncycastle.asn1.ASN1Primitive j() {
        return this.b;
    }

    public org.bouncycastle.asn1.ASN1Encodable o() {
        return this.a;
    }

    public AttCertIssuer(org.bouncycastle.asn1.x509.V2Form v2Form) {
        this.a = v2Form;
        this.b = new org.bouncycastle.asn1.DERTaggedObject(false, 0, v2Form);
    }
}
