Microsoft SDK for Java

checkForAllPermissions

This method of the PolicyEngine Class performs a security check to determine whether all the calling class types on the call stack are fully trusted. If any of the calling classes are not fully trusted, the security check fails (a SecurityException is thrown).

Syntax

public static void checkForAllPermissions();

Note   Permission assertions and denials on the permission type PermissionID.SYSTEM affect the stack crawl, causing it to terminate early without examining the entire stack.

Exceptions

SecurityException if the security check fails.

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