Java Reference
In-Depth Information
-> install file:paint-example/shape-4.0.jar
Bundle: 8
-> install file:paint-example/paint-4.0.jar
Bundle: 9
-> start 9
These bundles were signed by the core certificate and have AllPermission , so you
should see an empty paint program (one with no shapes) after starting the paint bun-
dle. Next, install and start the unsigned circle bundle:
-> install file:paint-example/circle-4.0.jar
Bundle: 10
-> start 10
Doing this causes the user to be prompted to grant the permission, as shown in fig-
ure 14.3. If you grant the bundle permission, you get a circle shape in the paint pro-
gram, as shown in figure 14.4.
Figure 14.3 Secured
paint program prompting
the user to grant the
unsigned circle bundle
permission to provide a
shape service
Figure 14.4 Secured
paint program after
the user has granted
permission to the
unsigned circle bundle
Search WWH ::




Custom Search