Microsoft SDK for Java

checkExec

This method of the StandardSecurityManager Class determines whether classes within the current execution context, based on the call stack of the current thread, are allowed to execute the specified application.

Syntax

public void checkExec(String cmd);

Parameters

cmd The application for which permission to execute is being checked.

Remarks

The check succeeds only if all the classes found on the call stack possess ExecutionPermission, and if those permissions allow the specified application to be run. This method overrides the java.lang.SecurityManager.checkExec method.

Exceptions

SecurityException if the security check fails.

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