SecurityManager.checkLink
Class Overview | Class Members |
This Package |
All Packages
public void checkLink( String lib )
Parameters
- lib
- the name of the library.
Description
Throws a SecurityException if the
calling thread is not allowed to dynamic link the library code
specified by the string argument file. The argument is either a
simple library name or a complete filename.
This method is invoked for the current security manager by
methods load and loadLibrary of class
Runtime.
The checkLink method for class
SecurityManager always throws a
SecurityException.
Exceptions
SecurityException
if the caller does not have permission
to dynamically link the library.
See Also
load, loadLibrary, getSecurityManager