导航菜单

页面标题

页面副标题

Crafto v9.3.3 - Y.java 源代码

正在查看: Crafto v9.3.3 应用的 Y.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package ym;

import Yl.AbstractC0249n;
import Yl.AbstractC0253s;
import Yl.AbstractC0255u;
import Yl.AbstractC0258x;
import Yl.C0239f;
import Yl.C0242g0;
import Yl.C0250o;
import Yl.InterfaceC0237e;
import Yl.h0;
import Yl.l0;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;

public class Y extends AbstractC0249n {
    public static final Hashtable g;
    public static final Boolean h;
    public static final Boolean i;
    public final Vector a = new Vector();
    public final Vector b = new Vector();
    public final Vector c = new Vector();

    public AbstractC0255u f981d;
    public boolean e;
    public int f;

    static {
        C0250o c0250o = new C0250o("2.5.4.6");
        C0250o c0250o2 = new C0250o("2.5.4.10");
        C0250o c0250o3 = new C0250o("2.5.4.11");
        C0250o c0250o4 = new C0250o("2.5.4.12");
        C0250o c0250o5 = new C0250o("2.5.4.3");
        C0250o c0250o6 = new C0250o("2.5.4.5");
        C0250o c0250o7 = new C0250o("2.5.4.9");
        C0250o c0250o8 = new C0250o("2.5.4.7");
        C0250o c0250o9 = new C0250o("2.5.4.8");
        C0250o c0250o10 = new C0250o("2.5.4.4");
        C0250o c0250o11 = new C0250o("2.5.4.42");
        C0250o c0250o12 = new C0250o("2.5.4.43");
        C0250o c0250o13 = new C0250o("2.5.4.44");
        C0250o c0250o14 = new C0250o("2.5.4.45");
        C0250o c0250o15 = new C0250o("2.5.4.15");
        C0250o c0250o16 = new C0250o("2.5.4.17");
        C0250o c0250o17 = new C0250o("2.5.4.46");
        C0250o c0250o18 = new C0250o("2.5.4.65");
        C0250o c0250o19 = new C0250o("1.3.6.1.5.5.7.9.1");
        C0250o c0250o20 = new C0250o("1.3.6.1.5.5.7.9.2");
        C0250o c0250o21 = new C0250o("1.3.6.1.5.5.7.9.3");
        C0250o c0250o22 = new C0250o("1.3.6.1.5.5.7.9.4");
        C0250o c0250o23 = new C0250o("1.3.6.1.5.5.7.9.5");
        C0250o c0250o24 = new C0250o("1.3.36.8.3.14");
        C0250o c0250o25 = new C0250o("2.5.4.16");
        new C0250o("2.5.4.54");
        C0250o c0250o26 = Z.j1;
        C0250o c0250o27 = Z.k1;
        C0250o c0250o28 = qm.o.M0;
        C0250o c0250o29 = qm.o.N0;
        C0250o c0250o30 = qm.o.O0;
        C0250o c0250o31 = new C0250o("0.9.2342.19200300.100.1.25");
        C0250o c0250o32 = new C0250o("0.9.2342.19200300.100.1.1");
        Hashtable hashtable = new Hashtable();
        g = hashtable;
        Hashtable hashtable2 = new Hashtable();
        Hashtable hashtable3 = new Hashtable();
        Hashtable hashtable4 = new Hashtable();
        h = new Boolean(true);
        i = new Boolean(false);
        hashtable.put(c0250o, "C");
        hashtable.put(c0250o2, "O");
        hashtable.put(c0250o4, "T");
        hashtable.put(c0250o3, "OU");
        hashtable.put(c0250o5, "CN");
        hashtable.put(c0250o8, "L");
        hashtable.put(c0250o9, "ST");
        hashtable.put(c0250o6, "SERIALNUMBER");
        hashtable.put(c0250o28, "E");
        hashtable.put(c0250o31, "DC");
        hashtable.put(c0250o32, "UID");
        hashtable.put(c0250o7, "STREET");
        hashtable.put(c0250o10, "SURNAME");
        hashtable.put(c0250o11, "GIVENNAME");
        hashtable.put(c0250o12, "INITIALS");
        hashtable.put(c0250o13, "GENERATION");
        hashtable.put(c0250o30, "unstructuredAddress");
        hashtable.put(c0250o29, "unstructuredName");
        hashtable.put(c0250o14, "UniqueIdentifier");
        hashtable.put(c0250o17, "DN");
        hashtable.put(c0250o18, "Pseudonym");
        hashtable.put(c0250o25, "PostalAddress");
        hashtable.put(c0250o24, "NameAtBirth");
        hashtable.put(c0250o22, "CountryOfCitizenship");
        hashtable.put(c0250o23, "CountryOfResidence");
        hashtable.put(c0250o21, "Gender");
        hashtable.put(c0250o20, "PlaceOfBirth");
        hashtable.put(c0250o19, "DateOfBirth");
        hashtable.put(c0250o16, "PostalCode");
        hashtable.put(c0250o15, "BusinessCategory");
        hashtable.put(c0250o26, "TelephoneNumber");
        hashtable.put(c0250o27, "Name");
        hashtable2.put(c0250o, "C");
        hashtable2.put(c0250o2, "O");
        hashtable2.put(c0250o3, "OU");
        hashtable2.put(c0250o5, "CN");
        hashtable2.put(c0250o8, "L");
        hashtable2.put(c0250o9, "ST");
        hashtable2.put(c0250o7, "STREET");
        hashtable2.put(c0250o31, "DC");
        hashtable2.put(c0250o32, "UID");
        hashtable3.put(c0250o, "C");
        hashtable3.put(c0250o2, "O");
        hashtable3.put(c0250o3, "OU");
        hashtable3.put(c0250o5, "CN");
        hashtable3.put(c0250o8, "L");
        hashtable3.put(c0250o9, "ST");
        hashtable3.put(c0250o7, "STREET");
        hashtable4.put("c", c0250o);
        hashtable4.put("o", c0250o2);
        hashtable4.put("t", c0250o4);
        hashtable4.put("ou", c0250o3);
        hashtable4.put("cn", c0250o5);
        hashtable4.put("l", c0250o8);
        hashtable4.put("st", c0250o9);
        hashtable4.put("sn", c0250o6);
        hashtable4.put("serialnumber", c0250o6);
        hashtable4.put("street", c0250o7);
        hashtable4.put("emailaddress", c0250o28);
        hashtable4.put("dc", c0250o31);
        hashtable4.put("e", c0250o28);
        hashtable4.put("uid", c0250o32);
        hashtable4.put("surname", c0250o10);
        hashtable4.put("givenname", c0250o11);
        hashtable4.put("initials", c0250o12);
        hashtable4.put("generation", c0250o13);
        hashtable4.put("unstructuredaddress", c0250o30);
        hashtable4.put("unstructuredname", c0250o29);
        hashtable4.put("uniqueidentifier", c0250o14);
        hashtable4.put("dn", c0250o17);
        hashtable4.put("pseudonym", c0250o18);
        hashtable4.put("postaladdress", c0250o25);
        hashtable4.put("nameofbirth", c0250o24);
        hashtable4.put("countryofcitizenship", c0250o22);
        hashtable4.put("countryofresidence", c0250o23);
        hashtable4.put("gender", c0250o21);
        hashtable4.put("placeofbirth", c0250o20);
        hashtable4.put("dateofbirth", c0250o19);
        hashtable4.put("postalcode", c0250o16);
        hashtable4.put("businesscategory", c0250o15);
        hashtable4.put("telephonenumber", c0250o26);
        hashtable4.put("name", c0250o27);
    }

    public Y() {
    }

    public static void r(StringBuffer stringBuffer, Hashtable hashtable, C0250o c0250o, String str) {
        String str2 = (String) hashtable.get(c0250o);
        if (str2 != null) {
            stringBuffer.append(str2);
        } else {
            stringBuffer.append(c0250o.a);
        }
        stringBuffer.append('=');
        int length = stringBuffer.length();
        stringBuffer.append(str);
        int length2 = stringBuffer.length();
        if (str.length() >= 2 && str.charAt(0) == '\\' && str.charAt(1) == '#') {
            length += 2;
        }
        while (length < length2 && stringBuffer.charAt(length) == ' ') {
            stringBuffer.insert(length, "\\");
            length += 2;
            length2++;
        }
        while (true) {
            length2--;
            if (length2 <= length || stringBuffer.charAt(length2) != ' ') {
                break;
            } else {
                stringBuffer.insert(length2, '\\');
            }
        }
        while (length <= length2) {
            char charAt = stringBuffer.charAt(length);
            if (charAt != '\"' && charAt != '\\' && charAt != '+' && charAt != ',') {
                switch (charAt) {
                    case ';':
                    case '<':
                    case '=':
                    case '>':
                        break;
                    default:
                        length++;
                        break;
                }
            }
            stringBuffer.insert(length, "\\");
            length += 2;
            length2++;
        }
    }

    public static String s(String str) {
        String d2 = Kn.j.d(str.trim());
        if (d2.length() <= 0 || d2.charAt(0) != '#') {
            return d2;
        }
        try {
            InterfaceC0237e x = AbstractC0253s.x(Ln.c.b(d2.length() - 1, d2));
            return x instanceof Yl.A ? Kn.j.d(((Yl.A) x).m().trim()) : d2;
        } catch (IOException e) {
            throw new IllegalStateException("unknown encoding in name: " + e);
        }
    }

    public static Y u(Object obj) {
        if (obj instanceof Y) {
            return (Y) obj;
        }
        if (obj instanceof wm.c) {
            return new Y(AbstractC0255u.F(((wm.c) obj).e));
        }
        if (obj != null) {
            return new Y(AbstractC0255u.F(obj));
        }
        return null;
    }

    public static String v(String str) {
        StringBuffer stringBuffer = new StringBuffer();
        if (str.length() != 0) {
            char charAt = str.charAt(0);
            stringBuffer.append(charAt);
            int i2 = 1;
            while (i2 < str.length()) {
                char charAt2 = str.charAt(i2);
                if (charAt != ' ' || charAt2 != ' ') {
                    stringBuffer.append(charAt2);
                }
                i2++;
                charAt = charAt2;
            }
        }
        return stringBuffer.toString();
    }

    @Override
    public final boolean equals(Object obj) {
        int i2;
        int i3;
        int i4;
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof Y) && !(obj instanceof AbstractC0255u)) {
            return false;
        }
        if (l().w(((InterfaceC0237e) obj).l())) {
            return true;
        }
        try {
            Y u = u(obj);
            Vector vector = this.a;
            int size = vector.size();
            if (size != u.a.size()) {
                return false;
            }
            boolean[] zArr = new boolean[size];
            Object elementAt = vector.elementAt(0);
            Vector vector2 = u.a;
            if (elementAt.equals(vector2.elementAt(0))) {
                i3 = size;
                i2 = 0;
                i4 = 1;
            } else {
                i2 = size - 1;
                i3 = -1;
                i4 = -1;
            }
            while (i2 != i3) {
                C0250o c0250o = (C0250o) vector.elementAt(i2);
                String str = (String) this.b.elementAt(i2);
                for (int i5 = 0; i5 < size; i5++) {
                    if (!zArr[i5] && c0250o.w((C0250o) vector2.elementAt(i5))) {
                        String str2 = (String) u.b.elementAt(i5);
                        String s = s(str);
                        String s2 = s(str2);
                        if (s.equals(s2) || v(s).equals(v(s2))) {
                            zArr[i5] = true;
                            i2 += i4;
                        }
                    }
                }
                return false;
            }
            return true;
        } catch (IllegalArgumentException unused) {
            return false;
        }
    }

    @Override
    public final int hashCode() {
        if (this.e) {
            return this.f;
        }
        this.e = true;
        int i2 = 0;
        while (true) {
            Vector vector = this.a;
            if (i2 == vector.size()) {
                return this.f;
            }
            String v = v(s((String) this.b.elementAt(i2)));
            int hashCode = vector.elementAt(i2).hashCode() ^ this.f;
            this.f = hashCode;
            this.f = hashCode ^ v.hashCode();
            i2++;
        }
    }

    @Override
    public final AbstractC0253s l() {
        if (this.f981d == null) {
            C0239f c0239f = new C0239f();
            C0239f c0239f2 = new C0239f();
            Vector vector = this.a;
            if (vector.size() != 0) {
                InterfaceC0237e[] interfaceC0237eArr = new InterfaceC0237e[2];
                C0250o c0250o = (C0250o) vector.elementAt(0);
                if (c0250o == null) {
                    throw new NullPointerException("'element' cannot be null");
                }
                int i2 = 0 + 1;
                if ((i2 > interfaceC0237eArr.length) | false) {
                    InterfaceC0237e[] interfaceC0237eArr2 = new InterfaceC0237e[Math.max(interfaceC0237eArr.length, i2 + (i2 >> 1))];
                    System.arraycopy(interfaceC0237eArr, 0, interfaceC0237eArr2, 0, 0);
                    interfaceC0237eArr = interfaceC0237eArr2;
                }
                interfaceC0237eArr[0] = c0250o;
                throw null;
            }
            c0239f.a(new h0(c0239f2));
            this.f981d = new C0242g0(c0239f);
        }
        return this.f981d;
    }

    public final String toString() {
        Hashtable hashtable = g;
        StringBuffer stringBuffer = new StringBuffer();
        Vector vector = new Vector();
        StringBuffer stringBuffer2 = null;
        int i2 = 0;
        while (true) {
            Vector vector2 = this.a;
            if (i2 >= vector2.size()) {
                break;
            }
            boolean booleanValue = ((Boolean) this.c.elementAt(i2)).booleanValue();
            Vector vector3 = this.b;
            if (booleanValue) {
                stringBuffer2.append('+');
                r(stringBuffer2, hashtable, (C0250o) vector2.elementAt(i2), (String) vector3.elementAt(i2));
            } else {
                stringBuffer2 = new StringBuffer();
                r(stringBuffer2, hashtable, (C0250o) vector2.elementAt(i2), (String) vector3.elementAt(i2));
                vector.addElement(stringBuffer2);
            }
            i2++;
        }
        boolean z = true;
        for (int i3 = 0; i3 < vector.size(); i3++) {
            if (z) {
                z = false;
            } else {
                stringBuffer.append(',');
            }
            stringBuffer.append(vector.elementAt(i3).toString());
        }
        return stringBuffer.toString();
    }

    public Y(AbstractC0255u abstractC0255u) {
        Vector vector;
        this.f981d = abstractC0255u;
        Enumeration I = abstractC0255u.I();
        while (I.hasMoreElements()) {
            AbstractC0258x H = AbstractC0258x.H(((InterfaceC0237e) I.nextElement()).l());
            int i2 = 0;
            while (true) {
                InterfaceC0237e[] interfaceC0237eArr = H.a;
                if (i2 < interfaceC0237eArr.length) {
                    AbstractC0255u F = AbstractC0255u.F(interfaceC0237eArr[i2].l());
                    if (F.size() != 2) {
                        throw new IllegalArgumentException("badly sized pair");
                    }
                    this.a.addElement(C0250o.I(F.H(0)));
                    InterfaceC0237e H2 = F.H(1);
                    if (!(H2 instanceof Yl.A) || (H2 instanceof l0)) {
                        try {
                            Vector vector2 = this.b;
                            StringBuilder sb = new StringBuilder();
                            sb.append("#");
                            byte[] q = H2.l().q("DER");
                            Ln.d dVar = Ln.c.a;
                            byte[] d2 = Ln.c.d(0, q.length, q);
                            int length = d2.length;
                            char[] cArr = new char[length];
                            for (int i3 = 0; i3 != length; i3++) {
                                cArr[i3] = (char) (d2[i3] & 255);
                            }
                            sb.append(new String(cArr));
                            vector2.addElement(sb.toString());
                        } catch (IOException unused) {
                            throw new IllegalArgumentException("cannot encode value");
                        }
                    } else {
                        String m = ((Yl.A) H2).m();
                        if (m.length() <= 0 || m.charAt(0) != '#') {
                            vector = this.b;
                        } else {
                            vector = this.b;
                            m = "\\".concat(m);
                        }
                        vector.addElement(m);
                    }
                    this.c.addElement(i2 != 0 ? h : i);
                    i2++;
                }
            }
        }
    }
}