First use this tool to log the required set of permissions:
com.sun.jini.tool.DebugDynamicPolicyProvider
Then checkPermissions() can check against the required permission using
PermissionCollection.implies(), any party that doesn't have the required
minimum permissions, gets a SecurityException. Remember,
PermissionCollection.implies() doesn't have to match the exact same
permission, just one that implies the required permission.
Cheers,
Peter.
Sim IJskes - QCG wrote:
Does anybody have a suggestion, what kind of permission we want to
test in ListenEndpoint.checkPermissions() ?
Bearing in mind, it will most probably be deployed from a .war and
runs in its own webapp classloader.
Gr. Sim