Microsoft SDK for Java

checkPropertyAccess

This method of the StandardSecurityManager Class determines if the specified system property can be read by all the classes within the current execution context.

Syntax

public void checkPropertyAccess(String key);

Parameters

key The system property for which read access is being checked.

Remarks

The check succeeds only if all the classes found on the call stack possess PropertyPermissions and those permissions allow read access to the specified property. This method overrides the java.SecurityManager.checkPropertyAccess method.

Exceptions

SecurityException if the security check fails.

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