wt.security
Class AWTAccess

java.lang.Object
  extended bywt.security.Access
      extended bywt.security.AWTAccess
Direct Known Subclasses:
AWTAccess_plugin

public class AWTAccess
extends Access


Field Summary
 
Fields inherited from class wt.security.Access
 
Constructor Summary
AWTAccess()
           
 
Method Summary
static AWTAccess getAWTAccess()
          .
static AWTAccess getAWTAccess(Frame parentFrame)
          Get instance of AWTAccess.
 int getHWnd(Component c)
          Wrapper to obtain handle to peer's heavy weight component.
(package private)  int getHWnd0(Component c)
           
 Clipboard getSystemClipboard()
          .
(package private)  Clipboard getSystemClipboard0()
           
 void setAppletStub(Applet applet, AppletStub appletStub)
          Wrapper needed by client checker to work with Java 1.5 as Applet.setStub() is a privileged operation there.
(package private)  void setAppletStub0(Applet applet, AppletStub appletStub)
           
 
Methods inherited from class wt.security.Access
checkAccess, checkAccessAll, checkClass, checkClass, checkClass, getAccessImpl, setParentFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTAccess

public AWTAccess()
Method Detail

getAWTAccess

public static AWTAccess getAWTAccess(Frame parentFrame)
Get instance of AWTAccess. This instance can then be used to perform AWT operation(like accessing clipboard) that are typically restricted by the sandbox.

Parameters:
parentFrame - the parent frame for security dialog boxes that may be presented

Supported API: true

getAWTAccess

public static AWTAccess getAWTAccess()
. * Get instance of AWTAccess. This instance can then be used to perform AWT operation that are typically restricted by the sandbox.

Supported API: true


getSystemClipboard

public Clipboard getSystemClipboard()
                             throws WTSecurityException
. * Wrapper for Toolkit.getDefaultToolkit().getSystemClipboard().

Supported API: true

Throws:
WTSecurityException

getSystemClipboard0

Clipboard getSystemClipboard0()

setAppletStub

public void setAppletStub(Applet applet,
                          AppletStub appletStub)
Wrapper needed by client checker to work with Java 1.5 as Applet.setStub() is a privileged operation there. This method is not supported and is unlike the other methods in that it does not ask permission from the user for its operation at this time, essentially maintaining 1.4.x behavior in Java 2 v1.5.


setAppletStub0

void setAppletStub0(Applet applet,
                    AppletStub appletStub)

getHWnd

public int getHWnd(Component c)
            throws WTSecurityException
Wrapper to obtain handle to peer's heavy weight component. Only implemented for the Java Plugin and Windows. Returns -1 for other platforms.

Supported API: true

Throws:
WTSecurityException

getHWnd0

int getHWnd0(Component c)
       throws WTSecurityException
Throws:
WTSecurityException