Microsoft SDK for Java

The Meaning of Trusted Code

The term trusted means that the code is no longer confined to the Java "sandbox." The sandbox restricts untrusted coded from successfully performing trusted operations such as calling native code, using COM, using Microsoft® J/Direct™, connecting to remote machines, printing, using JDBC, and creating top-level windows that do not use the applet warning.

For classes to run with permissions above the sandbox level, they must be delivered to the client machine inside a signed cabinet file. The cabinet file signature must specify the permissions that the contained classes require. There are three basic permission levels that can be assigned: High (for untrusted code), Medium (for partially trusted code), and Low (for fully trusted code). Special considerations apply when a cabinet file contains ActiveX controls. For details on these permission levels and what they allow code to do, see Cabinet File Permission Levels.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.