ServicePermission

Syntax

public final class ServicePermission extends
   java.security.BasicPermission

java.lang.Object
  |
  +--java.security.Permission
        |
        +--java.security.BasicPermission
              |
              +--org.osgi.framework.ServicePermission
					

All Implemented Interfaces: java.security.Guard, java.io.Serializable

Description

ServicePermission indicates a bundle's right to register or get a service.

The “register” permission will allow the bundle to register a service on the specified names. The “get” permission allows a bundle to see a service and get it. Permission to get a service is required to see events regarding the service. Untrusted bundles should not be able to detect the presence of certain services unless they have authority to get the specific service. ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.