String md = mode.toUpperCase();  if (md.equals("NONE") || md.equals("ECB")) { return; }  if (md.equals("1")) { privateKeyOnly = true; publicKeyOnly = false; return; } else if (md.equals("2")) { privateKeyOnly = false; publicKeyOnly = true; return; }
    protected void engineSetMode(        String  mode)        throws NoSuchAlgorithmException    {        throw new NoSuchAlgorithmException("can't support mode " + mode);    }