This method of the StandardSecurityManager Class, if a security manager is installed, checks to see if applets can access classes located in the package that contains a specified class.
public static void checkPackageAccessFromClassName(String classname);
classname | The name of the class from which the package to check is determined. The class name must be separated from the package name (if any) by a dot (.). |
The checkPackageAccess method of the current security manager is called to determine whether the package access is allowed. If a security manager is not installed, this method does nothing. If the class name does not specify a package, the call succeeds.
Note This method requires a full class name. Do not trim off the class name as you would when calling java.lang.SecurityManager.checkPackageAccess.
SecurityException if access to the package is prohibited.