Share via


SecurityManager.checkPropertyAccess

Class Overview | Class Members | This Package | All Packages

Syntax

public void checkPropertyAccess( String key )

Parameters
  • key
    a system property key.
Description

Throws a SecurityException if the calling thread is not allowed to access the system property with the specified key name.

This method is used by the getProperty method of class System.

The checkPropertiesAccess method for class SecurityManager always throws a SecurityException.

Exceptions

SecurityException if the caller does not have permission to access the specified system property.

See Also

getProperty