The UIPermission Class of the com.ms.security.permissions package represents a permission that controls the ability to use some of the enhanced functionality of the AWT.
public class UIPermission implements IPermission, IEncodablePermission { // Fields public static final int ALLOW_CLIPBOARD; public static final int ALLOW_EVENTQUEUEACCESS; public static final int ALLOW_FILEDIALOG; public static final int ALLOW_TOPLEVELWINDOW; // Constructors public UIPermission(); // Methods public void check(Object param); public IPermission combine(IPermission source2); public int compareSet(Object target); public IPermission copy(); public boolean decode(String tag, InputStream data); public boolean encode(String tag, OutputStream out); public boolean getClipboardAccess(); public boolean getEventQueueAccessAllowed(); public boolean getFileDialogsAllowed(); public boolean getTopLevelWindowCreationAllowed(); public boolean getWarningBannersRequired(); public String mapFormat(String format); public void reset(); public void setClipboardAccess(boolean flag); public void setEventQueueAccessAllowed(boolean flag); public void setFileDialogsAllowed(boolean flag); public void setTopLevelWindowCreationAllowed(boolean flag); public void setWarningBanners(boolean flag); public String[] supportedFormats(); public String toString(); }
Specifically, the UI (user interface) permission controls the ability to do the following:
You can also use this permission to determine whether top-level windows require warning banners.
The StandardSecurityManager class checks for this permission type when performing the checkFileDialog, checkSystemClipboardAccess, checkAwtEventQueueAccess, and checkTopLevelWindow operations.
This class implements the IPermission and IEncodablePermission interfaces.
com.ms.security.permissions.UIAccessRequest