Previous Topic

Next Topic

Book Contents

Book Index

Security utility

The security utilities of the framework are located in the com.prosyst.util.security package.

The SecurityUtil class allows you to execute common operations related to management of bundles, services, files, system properties, etc., in a java.security.AccessController's doPrivileged block without the need of creating such a block by yourself. In addition, you can define and execute custom tasks accepting a certain number of arguments – implement a com.prosyst.util.security.PrivilegedRunner.PrivilegedDispatcher instance and call the proper doPrivileged method passing the PrivilegedRunner.PrivilegedDispatcher instance, the task type and task's argument.

The AccessController class was planned to act like java.security.AccessController for Java virtual machines not implementing this class (e.g. VMs compliant with JDK 1.1.x). In this release, this utility does not provide any functionality – it is left in the framework only for backward compatibility. Instead, bundles can use the conventional java.security.AccessController and its helper classes as they are included in the serverjvm11.jar and serverjvm11conn.jar JAR files, intended for use on JDK 1.1.x compliant JVMs.