|
|
|||||||||||||
Class ExecutionRequestpublic class ExecutionRequest implements ISecurityRequest { // Constructors public ExecutionRequest(String torun); // Methods public PermissionID getPermissionID(); public String toString (); } This class represents a request to execute an application. It is intended to be used as the security request object for a parameterized security check involving the execution permission. The ExecutionPermission.check method expects an ExecutionRequest object as its parameter. The following example uses an ExecutionRequest object to perform a security check. ... // Create an ExecutionRequest object that indicates that you want // to execute the application "notepad.exe". ExecutionRequest sreq = new ExecutionRequest("notepad.exe"); // Check to see that all of your callers have the rights to // execute the notepad program. PolicyEngine.checkPermission(sreq); ... For more information about checking execution permissions, see the PolicyEngine class and the ExecutionPermission class. ConstructorsExecutionRequestpublic ExecutionRequest(String torun); MethodsgetPermissionIDpublic PermissionID getPermissionID(); toStringpublic String toString ();
|
© 1998 Microsoft Corporation. All rights reserved. Terms of use. |