com.ibm.security12.sun.security.action
Class LoadLibraryAction
java.lang.Object
|
+--com.ibm.security12.sun.security.action.LoadLibraryAction
- public class LoadLibraryAction
- extends Object
- implements PrivilegedAction
A convenience class for loading a system library as a privileged action.
An instance of this class can be used as the argument of
AccessController.doPrivileged
.
The following code attempts to load the system library named
"lib"
as a privileged action:
java.security.AccessController.doPrivileged(new LoadLibraryAction("lib"));
- Since:
- JDK1.2
- Version:
- 1.4, 06/29/98
- Author:
- Roland Schemers
- See Also:
java.security.PrivilegedAction
,
java.security.AccessController
Constructor Summary |
LoadLibraryAction(String theLib)
Constructor that takes the name of the system library that needs to be
loaded. |
Method Summary |
Object |
run()
Loads the system library whose name was specified in the constructor. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LoadLibraryAction
public LoadLibraryAction(String theLib)
- Constructor that takes the name of the system library that needs to be
loaded.
The manner in which a library name is mapped to the
actual system library is system dependent.
- Parameters:
theLib
- the name of the library.
run
public Object run()
- Loads the system library whose name was specified in the constructor.
- Specified by:
- run in interface PrivilegedAction