Microsoft SDK for Java

check

This method of the ExecutionPermission Class determines whether the permission allows the applications specified in an ExecutionRequest object to be executed.

Syntax

public void check(Object param);

Parameters

param The security request parameter. It must be an instance of ExecutionRequest.

To determine whether the check passes or fails using rules

  1. If this permission object allows unrestricted access, the check passes.

  2. If the specified application is within the set of explicitly denied applications, the check fails.

  3. If the specified application is within the set of explicitly allowed applications, the check succeeds; otherwise, it fails.

Exceptions

SecurityException if this permission does not allow the specified program to run.

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