An OSCAR shell command to handle the OSGi PermissionAdmin Service.
Copyright 2004 TRIALOG
This bundle is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This bundle must have the
org.osgi.framework.AdminPermission
in
order to be able to set and change permissions through the Permission
Admin service.
Once the bundle is started, the following shell commands are available:
permz list [<bundle url>]
lists either all the permissions or only those associated to a bundle.
permz add <bundle url> <permissionType> [<Name> [<Actions>]]
adds a permission to a given bundle.
permz del <bundle url> <permission #>
removes a permission (numbered from 0) from a bundle.
permz load <file>
loads a set of permissions from a local file.
permz reset [<bundle url>]
clears the permissions associated to a bundle.
The
embedded
folder contains the Java
library(ies) to be embedded in the bundle.
The
lib
folder contains other Java
library(ies) that are needed by the compiler but that will not be
embedded in the bundle.
The
src
folder contains the Java classes of
the Permission Admin implementation. Details of the classes is
available in the Architecture section.
license-2.0
is the license of the bundle.
manifest.mf
is the manifest file to be included in the bundle.
SampleLoadPermissions.xml
is a sample file to test the load feature of the shell command.