|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prosyst.util.security.PrivilegedRunner
public final class PrivilegedRunner
A simple wrapper for executing privileged actions.
| Nested Class Summary | |
|---|---|
static interface |
PrivilegedRunner.PrivilegedDispatcher
This dispatcher is the handler that is called within the privileged call. |
| Method Summary | |
|---|---|
static java.lang.Object |
doPrivileged(java.lang.Object context,
PrivilegedRunner.PrivilegedDispatcher dispatcher,
int type,
java.lang.Object arg1)
Same as the longer doPrivileged method, but fills in the first parameter only. |
static java.lang.Object |
doPrivileged(java.lang.Object context,
PrivilegedRunner.PrivilegedDispatcher dispatcher,
int type,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Performs a privileged action. |
java.lang.Object |
getInstance()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final java.lang.Object doPrivileged(java.lang.Object context,
PrivilegedRunner.PrivilegedDispatcher dispatcher,
int type,
java.lang.Object arg1)
throws java.lang.Exception
null.
context - the access contextdispatcher - the dispatcher which should be calledtype - the type of the action - used in the dispatcherarg1 - a parameter received by the dispatcher
java.lang.Exception - if the dispatcher failsdoPrivileged(Object, PrivilegedDispatcher, int, Object)
public static final java.lang.Object doPrivileged(java.lang.Object context,
PrivilegedRunner.PrivilegedDispatcher dispatcher,
int type,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
throws java.lang.Exception
context - the access contextdispatcher - the dispatcher which should be calledtype - the type of the action - used in the dispatcherarg1 - a parameter received by the dispatcherarg2 - a parameter received by the dispatcherarg3 - a parameter received by the dispatcherarg4 - a parameter received by the dispatcher
java.lang.Exception - if the dispatcher fails
public java.lang.Object getInstance()
throws java.lang.Exception
getInstance in interface ObjectCreatorjava.lang.ExceptionObjectCreator.getInstance()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||