OSGi Service Platform
Release 4

org.osgi.service.condpermadmin
Interface ConditionalPermissionAdmin


public interface ConditionalPermissionAdmin

This is a framework service that allows ConditionalPermissionInfos to be added to, retrieved from, and removed from the framework.

Version:
$Revision: 1.5 $

Method Summary
 ConditionalPermissionInfo addConditionalPermissionInfo(ConditionInfo[] conds, PermissionInfo[] perms)
          This is a framework service that allows ConditionalPermissionInfos to be added to, retrieved from, and removed from the framework.
 java.security.AccessControlContext getAccessControlContext(java.lang.String[] signers)
          Returns the AccessControlContext that corresponds to the given signers.
 java.util.Enumeration getConditionalPermissionInfos()
          Returns the ConditionalPermissionInfos that are currently managed by ConditionalPermissionAdmin.
 

Method Detail

addConditionalPermissionInfo

public ConditionalPermissionInfo addConditionalPermissionInfo(ConditionInfo[] conds,
                                                              PermissionInfo[] perms)
This is a framework service that allows ConditionalPermissionInfos to be added to, retrieved from, and removed from the framework.

Parameters:
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.
Returns:
the ConditionalPermissionInfo that for the newly added Conditions and Permissions.

getConditionalPermissionInfos

public java.util.Enumeration getConditionalPermissionInfos()
Returns the ConditionalPermissionInfos that are currently managed by ConditionalPermissionAdmin. The Enumeration is made up of ConditionalPermissionInfos. Calling ConditionalPermissionInfo.delete() will remove the ConditionalPermissionInfo from ConditionalPermissionAdmin.

Returns:
the ConditionalPermissionInfos that are currently managed by ConditionalPermissionAdmin. The Enumeration is made up of ConditionalPermissionInfos.

getAccessControlContext

public java.security.AccessControlContext getAccessControlContext(java.lang.String[] signers)
Returns the AccessControlContext that corresponds to the given signers.

Parameters:
signers - the signers that will be checked agains BundleSignerCondition.
Returns:
an AccessControlContext that has the Permissions associated with the signer.

OSGi Service Platform
Release 4

Copyright (c) OSGi Alliance (2000, 2005). All Rights Reserved.