permissions = new ArrayList<Permission>(2); permissions.add(new SerializablePermission("enableSubclassImplementation")); permissions.add(new SerializablePermission("enableSubstitution"));
for (Iterator<Permission> i = permissions.iterator(); i.hasNext(); ) { if (i.next().equals(p)) { throw new SecurityException(); } }