|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Framework service to administer Conditional Permissions. Conditional Permissions can be added to, retrieved from, and removed from the framework.
| Method Summary | |
ConditionalPermissionInfo |
addConditionalPermissionInfo(ConditionInfo[] conds,
PermissionInfo[] perms)
Create a new Conditional Permission Info. |
java.security.AccessControlContext |
getAccessControlContext(java.lang.String[] signers)
Returns the Access Control Context that corresponds to the specified signers. |
ConditionalPermissionInfo |
getConditionalPermissionInfo(java.lang.String name)
Return the Conditional Permission Info with the specified name. |
java.util.Enumeration |
getConditionalPermissionInfos()
Returns the Conditional Permission Infos that are currently managed by Conditional Permission Admin. |
ConditionalPermissionInfo |
setConditionalPermissionInfo(java.lang.String name,
ConditionInfo[] conds,
PermissionInfo[] perms)
Set or create a Conditional Permission Info with a specified name. |
| Method Detail |
public ConditionalPermissionInfo addConditionalPermissionInfo(ConditionInfo[] conds,
PermissionInfo[] perms)
conds - The Conditions that need to be satisfied to enable the
corresponding Permissions.perms - The Permissions that are enable when the corresponding
Conditions are satisfied.
java.lang.SecurityException - If the caller does not have
AllPermission.
public ConditionalPermissionInfo setConditionalPermissionInfo(java.lang.String name,
ConditionInfo[] conds,
PermissionInfo[] perms)
null, a new Conditional
Permission Info must be created and will be given a unique, never reused
name. If there is currently no Conditional Permission Info with the
specified name, a new Conditional Permission Info must be created with
the specified name. Otherwise, the Conditional Permission Info with the
specified name must be updated with the specified Conditions and
Permissions.
name - The name of the Conditional Permission Info, or
null.conds - The Conditions that need to be satisfied to enable the
corresponding Permissions.perms - The Permissions that are enable when the corresponding
Conditions are satisfied.
java.lang.SecurityException - If the caller does not have
AllPermission.public java.util.Enumeration getConditionalPermissionInfos()
ConditionalPermissionInfo.delete() will remove the Conditional
Permission Info from Conditional Permission Admin.
public ConditionalPermissionInfo getConditionalPermissionInfo(java.lang.String name)
name - The name of the Conditional Permission Info to be returned.
public java.security.AccessControlContext getAccessControlContext(java.lang.String[] signers)
signers - The signers for which to return an Access Control Context.
AccessControlContext that has the Permissions
associated with the signer.
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||