private int func_74841_a(String par1Str)
    {
        StringTokenizer stringtokenizer = new StringTokenizer(Strings.func_74830_a(par1Str), " ,");
        int i = 0;

        do
        {
            if (!stringtokenizer.hasMoreTokens())
            {
                break;
            }

            String s = stringtokenizer.nextToken();

            if (s.equals("threadlocalecimplicitlyca"))
            {
                i |= 1;
            }
            else if (s.equals("ecimplicitlyca"))
            {
                i |= 2;
            }
            else if (s.equals("threadlocaldhdefaultparams"))
            {
                i |= 4;
            }
            else if (s.equals("dhdefaultparams"))
            {
                i |= 8;
            }
            else if (s.equals("all"))
            {
                i |= 0xf;
            }
        }
        while (true);

        if (i == 0)
        {
            throw new IllegalArgumentException("unknown permissions passed to mask");
        }
        else
        {
            return i;
        }
    }