package org.bouncycastle.asn1.x509;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class CRLReason extends org.bouncycastle.asn1.ASN1Object {
    private static final java.lang.String[] b = {"unspecified", "keyCompromise", "cACompromise", "affiliationChanged", "superseded", "cessationOfOperation", "certificateHold", "unknown", "removeFromCRL", "privilegeWithdrawn", "aACompromise"};
    private static final java.util.Hashtable c = new java.util.Hashtable();
    private org.bouncycastle.asn1.ASN1Enumerated a;

    private CRLReason(int i) {
        if (i < 0) {
            throw new java.lang.IllegalArgumentException("Invalid CRL reason : not in (0..MAX)");
        }
        this.a = new org.bouncycastle.asn1.ASN1Enumerated(i);
    }

    public static org.bouncycastle.asn1.x509.CRLReason n(java.lang.Object obj) {
        if (obj instanceof org.bouncycastle.asn1.x509.CRLReason) {
            return (org.bouncycastle.asn1.x509.CRLReason) obj;
        }
        if (obj != null) {
            return p(org.bouncycastle.asn1.ASN1Enumerated.y(obj).B());
        }
        return null;
    }

    public static org.bouncycastle.asn1.x509.CRLReason p(int i) {
        java.lang.Integer numF = org.bouncycastle.util.Integers.f(i);
        java.util.Hashtable hashtable = c;
        if (!hashtable.containsKey(numF)) {
            hashtable.put(numF, new org.bouncycastle.asn1.x509.CRLReason(i));
        }
        return (org.bouncycastle.asn1.x509.CRLReason) hashtable.get(numF);
    }

    @Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
    public org.bouncycastle.asn1.ASN1Primitive j() {
        return this.a;
    }

    public java.math.BigInteger o() {
        return this.a.A();
    }

    public java.lang.String toString() {
        int iIntValue = o().intValue();
        return "CRLReason: " + ((iIntValue < 0 || iIntValue > 10) ? "invalid" : b[iIntValue]);
    }
}
