-
Task
-
Resolution: Done
-
Major
-
None
-
None
Permissions checking in public static methods is needed for Common Criteria certification.
Add something similar to this at the beginning of the method:
public static ServiceRegistry getRegistry() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new RuntimePermission(ServiceRegistry.class.getName() + ".getRegistry")); } return REGISTRY ; }