This method of the ReflectionPermission Class determines whether the permission object allows the specified action. The request parameter represents a request to perform a particular action. The type of the parameter depends on the type of the permission object.
public void check(Object param);
param | The object that represents the action for which permission is being checked. |
SecurityException if the state of the permission object indicates that the action is not allowed.