Microsoft SDK for Java

check

This method of the PropertyPermission Class determines whether the permission allows the system property access specified by the PropertyAccessRequest parameter.

Syntax

public void check(Object param);

Parameters

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

Remarks

If the PropertyAccessRequest is requesting ALL access, this check will only succeed if this permission object has unrestricted access to the system properties. Otherwise, the PropertyAccessRequest parameter indicates a request for access to a specific system property by name. In this case, the following rules are used to determine whether the check passes or fails.

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

  2. If the specified property is within the set of explicitly denied properties, the check fails.

  3. If the specified property is within the set of explicitly allowed properties, the check succeeds. Otherwise, the check fails.

Exceptions

SecurityException if this permission does not allow access to the specified system property.

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