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