Search in sources :

Example 1 with CoordinationPermission

use of org.osgi.service.coordinator.CoordinationPermission in project felix by apache.

the class CoordinatorImpl method checkPermission.

public void checkPermission(final String coordinationName, final String actions) {
    final SecurityManager securityManager = System.getSecurityManager();
    if (securityManager != null) {
        final Permission permission = new CoordinationPermission(coordinationName, this.owner, actions);
        securityManager.checkPermission(permission);
    }
}
Also used : Permission(java.security.Permission) CoordinationPermission(org.osgi.service.coordinator.CoordinationPermission) CoordinationPermission(org.osgi.service.coordinator.CoordinationPermission)

Aggregations

Permission (java.security.Permission)1 CoordinationPermission (org.osgi.service.coordinator.CoordinationPermission)1