/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.common.mime.ContentTypeHeader
 */
package com.l7tech.server.policy.assertion.xml;

import com.l7tech.common.mime.ContentTypeHeader;
import com.l7tech.server.policy.assertion.xml.i;
import com.l7tech.server.url.AbstractUrlObjectCache;
import java.io.IOException;

class j
implements AbstractUrlObjectCache.UserObjectSource {
    final String val$resourceString;
    private static final String a = j.a(61, j.a("fQ0fEjrXQ62S{"));

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    j(i i2, String string) {
        this.val$resourceString = string;
    }

    @Override
    public byte[] getBytes() throws IOException {
        throw new IOException(a);
    }

    @Override
    public ContentTypeHeader getContentType() {
        return null;
    }

    @Override
    public String getString(boolean bl2) {
        return this.val$resourceString;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x3F);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String a(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 21;
                    case 1 -> 3;
                    case 2 -> 121;
                    case 3 -> 123;
                    case 4 -> 11;
                    case 5 -> 34;
                    default -> 63;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

