Microsoft SDK for Java

checkRegistry

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 perform the specified access to the specified portion of the registry.

Syntax

public void checkRegistry(int access, String value);

access The access type.
value The registry key.

Remarks

The check succeeds only if all the classes found on the call stack possess RegistryPermissions, and if those permissions allow the specified access type onto the specified portion of the registry.

Exceptions

SecurityException if the security check fails.

See Also

com.ms.lang.RegKey

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