| 
OSGi™ Service Platform Release 3  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
java.security.BasicPermission
org.osgi.framework.ServicePermission
Indicates a bundle's authority to register or get a service.
| Field Summary | |
static java.lang.String | 
GET
The action string get (Value is "get").  | 
static java.lang.String | 
REGISTER
The action string register (Value is "register").  | 
| Constructor Summary | |
ServicePermission(java.lang.String name,
                  java.lang.String actions)
Create a new ServicePermission.  | 
|
| Method Summary | |
 boolean | 
equals(java.lang.Object obj)
Determines the equalty of two ServicePermission objects.  | 
 java.lang.String | 
getActions()
Returns the canonical string representation of the actions.  | 
 int | 
hashCode()
Returns the hash code value for this object.  | 
 boolean | 
implies(java.security.Permission p)
Determines if a ServicePermission object "implies" the specified permission.  | 
 java.security.PermissionCollection | 
newPermissionCollection()
Returns a new PermissionCollection object for storing ServicePermission objects.  | 
| Methods inherited from class java.security.Permission | 
checkGuard, getName, toString | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String GET
public static final java.lang.String REGISTER
| Constructor Detail | 
public ServicePermission(java.lang.String name,
                         java.lang.String actions)
The name of the service is specified as a fully qualified class name.
ClassName ::= <class name> | <class name ending in ".*">Examples:
    org.osgi.service.http.HttpService
    org.osgi.service.http.*
    org.osgi.service.snmp.*
 
 There are two possible actions: get and register. The get permission allows the owner of this permission to obtain a service with this name. The register permission allows the bundle to register a service under that name.
name - class nameactions - get, register (canonical order)| Method Detail | 
public boolean implies(java.security.Permission p)
p - The target permission to check.
public java.lang.String getActions()
public java.security.PermissionCollection newPermissionCollection()
public boolean equals(java.lang.Object obj)
obj - The object to test for equality.
public int hashCode()
  | 
OSGi™ Service Platform Release 3  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||