|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.security.action.LoadLibraryAction
public class LoadLibraryAction
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"));
PrivilegedAction,
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 |
| Constructor Detail |
|---|
public LoadLibraryAction(String theLib)
The manner in which a library name is mapped to the actual system library is system dependent.
theLib - the name of the library.| Method Detail |
|---|
public Object run()
run in interface PrivilegedActionPrivilegedAction
should document what (if anything) this value represents.AccessController.doPrivileged(PrivilegedAction),
AccessController.doPrivileged(PrivilegedAction,
AccessControlContext)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||