SecurityManager.checkPackageDefinition
Class Overview | Class Members |
This Package |
All Packages
public void checkPackageDefinition( String pkg )
Parameters
- pkg
- the package name.
Description
Throws a SecurityException if the
calling thread is not allowed to define classes in the package
specified by the argument.
This method is used by the loadClass method of some
class loaders.
The checkPackageDefinition method for class
SecurityManager always throws a
SecurityException.
Exceptions
SecurityException
if the caller does not have permission
to define classes in the specified package.
See Also
loadClass