Package checking algorithm

Java's most recent performance improvement, when running applications with a security manager installed, came in the form of the java.lang.SecurityManager package enhancements. More specifically, the checkPackageAccess method's package checking algorithm was modified.

The java.lang.SecurityManager class allows applications to implement security policies on specific operations. The public void checkPackageAccess(String pkg) method of this class receives a comma-delimited list of restricted packages from the getProperty() method. As illustrated here, depending on the evaluation, the checkPackageAccess method can throw one of two exceptions:

checkPackageAccess method's exceptions
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset