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