It would be nice if we could support programmatic support for proxying objects with method security. For example:


class Foo {
  @DenyAll
  String bar() {
    return "bar";
  }
}

Foo secured = security.proxy(new Foo());
secured.bar(); // denied!