* Check that the string is not a valid target.
*/
public static void bad(String name, String why) throws Exception {
check(new AP(name, "connect"), why);
try {
new AuthenticationPermission(name, "connect");
} catch (IllegalArgumentException e) {
if (why.equals(e.getMessage())) {
return;
}
throw e;