// can call setActivationGroupDesc to set to default
sys.setActivationGroupDesc(gid,
new ActivationGroupDesc(null, null));
// can call registerObject
ActivationID aid =
sys.registerObject(new ActivationDesc(gid, "Foo", null, null));
// cannot call activate
try {
aid.activate(false);
throw new RuntimeException("client2 able to activate");
} catch (SecurityException e) {
}
// can call getProxyVerifier
Security.verifyObjectTrust(aid, null, trustCtx);
// can call getActivationDesc
ActivationDesc adesc = sys.getActivationDesc(aid);
// can call setActivationDesc
sys.setActivationDesc(aid, adesc);
// can call unregisterObject
sys.unregisterObject(aid);
// cannot call activeGroup