|
OSGi Service Platform Release 4 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.security.Permission
org.osgi.service.cm.ConfigurationPermission
Indicates a bundle's authority to set or get a Configuration. This permission verifies if the caller has the authority to get the configuration of a specific PID and to get set it. The target of this permission is a filter expression. The filter gives access to the following parameters:
update method. This implies READhasPermission method before it calls the right variation of
the updated method.
| Field Summary | |
static int |
ACTION_ALL
|
static int |
ACTION_ERROR
|
static int |
ACTION_GET
|
static java.lang.String[] |
ACTION_NAMES
|
static int |
ACTION_NONE
|
static int |
ACTION_READ
|
static int |
ACTION_REBIND
|
static int |
ACTION_SET
|
static int[] |
ACTIONS
|
static java.lang.String |
GET
The action string get. |
static java.lang.String |
READ
The action string read. |
static java.lang.String |
REBIND
The action string rebind. |
static java.lang.String |
SET
The action string set. |
| Constructor Summary | |
ConfigurationPermission(Bundle bundle,
java.lang.String pid,
java.lang.String factoryPid,
int action)
Create a new Configuration Permission. |
|
ConfigurationPermission(java.lang.String name,
java.lang.String actions)
Create a new ConfigurationPermission. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getActions()
|
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(java.security.Permission p)
Determines if a ConfigurationPermission object "implies"
the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
|
| 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 int ACTION_GET
public static int ACTION_SET
public static int ACTION_READ
public static int ACTION_REBIND
public static int ACTION_ALL
public static int ACTION_NONE
public static int ACTION_ERROR
public static final java.lang.String GET
get.
public static final java.lang.String SET
set. This implies
public static final java.lang.String READ
read.
public static final java.lang.String REBIND
rebind.
public static final int[] ACTIONS
public static final java.lang.String[] ACTION_NAMES
| Constructor Detail |
public ConfigurationPermission(java.lang.String name,
java.lang.String actions)
Examples:
(signer=*,o=ACME,c=US)
(pid=com.acme.*)
(factoryPid=com.acme.*)
(&(signer=*,o=ACME,c=US)(pid=com.acme.*))
There are the following actions:
get,set,
and read. The set/tt> action allows a bundle
to create, list, get, update and delete configurations for the target.
The get action allows a bundle to receive a configuration
object. The target bundle is itself in that case. The read
action permits listing the configurations. The set action
implies read.
actions - get, set, read (canonical order)
public ConfigurationPermission(Bundle bundle,
java.lang.String pid,
java.lang.String factoryPid,
int action)
bundle - The target bundle. This must be the bundle that will
receive the configuration.pid - The PID in question (for factories, the PID is generated and
not checkeable).factoryPid - The PID of the factory if this is a factory
configurationaction - The action (GET, SET, or READ [no combinations allowed])| Method Detail |
public boolean implies(java.security.Permission p)
ConfigurationPermission object "implies"
the specified permission.
p - The target permission to check.
true if the specified permission is implied by
this object; false otherwise.public java.lang.String getActions()
public java.security.PermissionCollection newPermissionCollection()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
OSGi Service Platform Release 4 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||