|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.SecurityManager | +--com.ibm.security12.java.lang.SecurityManager12 | +--com.ibm.security12.sun.applet.AppletSecurity
This class defines an applet security policy
Fields inherited from class com.ibm.security12.java.lang.SecurityManager12 |
inCheck |
Fields inherited from class java.lang.SecurityManager |
inCheck |
Constructor Summary | |
AppletSecurity()
Construct and initialize. |
Method Summary | |
void |
checkAccess(Thread t)
Applets are not allowed to manipulate threads outside applet thread groups. |
void |
checkAccess(ThreadGroup g)
Applets are not allowed to manipulate thread groups outside applet thread groups. |
void |
checkAwtEventQueueAccess()
Tests if a client can get access to the AWT event queue. |
void |
checkPackageAccess(String pkgname)
Throws a SecurityException if the
calling thread is not allowed to access the package specified by
the argument. |
ThreadGroup |
getThreadGroup()
Returns the thread group of the applet. |
protected boolean |
inThreadGroup(Thread thread)
Returns true if the threadgroup of thread is in the applet's own threadgroup. |
protected boolean |
inThreadGroup(ThreadGroup g)
Returns true if this threadgroup is in the applet's own thread group. |
void |
reset()
Reset from Properties |
Methods inherited from class com.ibm.security12.java.lang.SecurityManager12 |
checkAccept,
checkConnect,
checkConnect,
checkCreateClassLoader,
checkDelete,
checkExec,
checkExit,
checkLink,
checkListen,
checkMemberAccess,
checkMulticast,
checkMulticast,
checkPackageDefinition,
checkPermission,
checkPermission,
checkPrintJobAccess,
checkPropertiesAccess,
checkPropertyAccess,
checkRead,
checkRead,
checkRead,
checkSecurityAccess,
checkSetFactory,
checkSystemClipboardAccess,
checkTopLevelWindow,
checkWrite,
checkWrite,
getSecurityContext |
Methods inherited from class java.lang.SecurityManager |
checkPermission,
checkPermission,
classDepth,
classLoaderDepth,
currentClassLoader,
currentLoadedClass,
getClassContext,
getInCheck,
inClass,
inClassLoader |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AppletSecurity()
Method Detail |
public void reset()
protected boolean inThreadGroup(ThreadGroup g)
protected boolean inThreadGroup(Thread thread)
public void checkAccess(Thread t)
public void checkAccess(ThreadGroup g)
public void checkPackageAccess(String pkgname)
SecurityException
if the
calling thread is not allowed to access the package specified by
the argument.
This method is used by the loadClass
method of class
loaders.
The checkPackageAccess
method for class
SecurityManager12
calls
checkPermission
with the
RuntimePermission("accessClassInPackage."+pkg)
permission.
pkg
- the package name.ClassLoader12.loadClass(java.lang.String, boolean)
public void checkAwtEventQueueAccess()
This method calls checkPermission
with the
AWTPermission("accessEventQueue")
permission.
public ThreadGroup getThreadGroup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |