|
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.AccessController
public class AccessController
This class is a wrapper of java.security.AccessController.
Its purpose is to hide the dependency on java.security package, so that the user of this class, could be used on JDK 1.1 compatible JVM-s and the others. In the first case, no security mechanism is provided in the JVM, so there is no need to execute doPrivileged blocks at all. In the second case the real java.security.AccessController is used to execute doPrivileged blocks.
| Constructor Summary | |
|---|---|
AccessController()
Deprecated. |
|
| Method Summary | |
|---|---|
static void |
checkPermission(java.lang.Object perm)
Deprecated. |
static java.lang.Object |
doPrivileged(PrivilegedAction action,
java.lang.Object context,
boolean exception)
Deprecated. |
static java.lang.Object |
getContext()
Deprecated. |
static boolean |
supportsSecurity()
Deprecated. Returns true if and only if the hosting JVM supports security. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessController()
| Method Detail |
|---|
public static boolean supportsSecurity()
true if and only if the hosting JVM supports security.
public static void checkPermission(java.lang.Object perm)
perm -
public static java.lang.Object doPrivileged(PrivilegedAction action,
java.lang.Object context,
boolean exception)
throws java.lang.Exception
action - context - exception -
java.lang.Exceptionpublic static java.lang.Object getContext()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||