@Override
    public PermissionCollection getPermissions(ProtectionDomain pd) {
      return perms;
    }
A security policy where new permissions can be dynamically added or all cleared.
geode-junit/src/main/java/org/apache/geode/util/JSR166TestCase.java