This method of the PropertyPermission Class determines whether the permission allows the system property access specified by the PropertyAccessRequest parameter.
public void check(Object param);
param | The security request parameter. It must be an instance of PropertyAccessRequest. |
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.
SecurityException if this permission does not allow access to the specified system property.