| |
|
| java.lang.Object java.lang.SecurityManager sun.awt.AWTSecurityManager sun.applet.AppletSecurity
AppletSecurity | public class AppletSecurity extends AWTSecurityManager (Code) | | This class defines an applet security policy
version: 1.85, 08/19/02 |
Method Summary | |
public synchronized void | checkAccess(Thread t) Applets are not allowed to manipulate threads outside
applet thread groups. | public synchronized void | checkAccess(ThreadGroup g) Applets are not allowed to manipulate thread groups outside
applet thread groups. | public void | checkAwtEventQueueAccess() Tests if a client can get access to the AWT event queue. | public void | checkPackageAccess(String pkgname) Throws a SecurityException if the
calling thread is not allowed to access the package specified by
the argument. | public AppContext | getAppContext() Get the AppContext corresponding to the current context.
The default implementation returns null, but this method
may be overridden by various SecurityManagers
(e.g. | public ThreadGroup | getThreadGroup() Returns the thread group of the applet. | protected boolean | inThreadGroup(ThreadGroup g) Returns true if this threadgroup is in the applet's own thread
group. | protected boolean | inThreadGroup(Thread thread) Returns true of the threadgroup of thread is in the applet's
own threadgroup. | public void | reset() |
AppletSecurity | public AppletSecurity()(Code) | | Construct and initialize.
|
checkAccess | public synchronized void checkAccess(Thread t)(Code) | | Applets are not allowed to manipulate threads outside
applet thread groups.
|
checkAccess | public synchronized void checkAccess(ThreadGroup g)(Code) | | Applets are not allowed to manipulate thread groups outside
applet thread groups.
|
checkAwtEventQueueAccess | public void checkAwtEventQueueAccess()(Code) | | Tests if a client can get access to the AWT event queue.
This method calls checkPermission with the
AWTPermission("accessEventQueue") permission.
since: JDK1.1 exception: SecurityException - if the caller does not have permission to accesss the AWT event queue. |
checkPackageAccess | public void checkPackageAccess(String pkgname)(Code) | | Throws a 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
SecurityManager calls
checkPermission with the
RuntimePermission("accessClassInPackage."+pkg)
permission.
Parameters: pkg - the package name. exception: SecurityException - if the caller does not havepermission to access the specified package. See Also: java.lang.ClassLoader.loadClass(java.lang.Stringboolean) |
getAppContext | public AppContext getAppContext()(Code) | | Get the AppContext corresponding to the current context.
The default implementation returns null, but this method
may be overridden by various SecurityManagers
(e.g. AppletSecurity) to index AppContext objects by the
calling context.
the AppContext corresponding to the current context. See Also: sun.awt.AppContext See Also: java.lang.SecurityManager since: JDK1.2.1 |
getThreadGroup | public ThreadGroup getThreadGroup()(Code) | | Returns the thread group of the applet. We consult the classloader
if there is one.
|
inThreadGroup | protected boolean inThreadGroup(ThreadGroup g)(Code) | | Returns true if this threadgroup is in the applet's own thread
group. This will return false if there is no current applet class
loader.
|
inThreadGroup | protected boolean inThreadGroup(Thread thread)(Code) | | Returns true of the threadgroup of thread is in the applet's
own threadgroup.
|
reset | public void reset()(Code) | | Reset from Properties
|
|
|
|