A ControlledAccessException is thrown when using the HttpFilterRegistry

by BlackBerry Development Advisor on ‎02-16-2010 11:03 AM (3,217 Views)

Summary


This article applies to BlackBerry® devices based on Java®.




Description


The default behavior of the BlackBerry security model is to deny applications from registering an HTTP filter through the use of the HttpFilterRegistry.registerFilter method. To allow an application on a BlackBerry device to use an HTTP filter, access must be granted.


Access can be granted in one of two ways, depending on the services the BlackBerry device has been provisioned for.


If the BlackBerry device is provisioned on a BlackBerry Enterprise Server, then application level permissions can be granted through the use of the Application Control Policy. These Application Control Policies can be created using BlackBerry Manager on the BlackBerry Enterprise Server.


For additional information on Application Control Policy properties and explanations, please refer to the BlackBerry Enterprise Server Policy Reference Guide.


Note: Software Configurations must be set up on the BlackBerry device user’s BlackBerry Enterprise Server. The application files (.cod and .alx files) must be available from the BlackBerry Enterprise Server in order for Application Control Policies to be properly applied on the BlackBerry devices. For further information on configuring this, please refer to the BlackBerry Enterprise Server Administrator Guides.


Alternatively, if the BlackBerry device is not configured on a BlackBerry Enterprise Server, the application permissions can be modified for the particular application directly on the BlackBerry device itself.


This can be completed as follows:


BlackBerry Device Software prior to 4.1

  1. Go to Options > Advanced Options > Applications.
  2. Highlight the application and select Edit Default Permissions from the menu.
  3. Expand Interactions and set the Browser Filters option to Allow.

BlackBerry Device Software 4.1 or later

  1. Go to Options > Security Options > Application Permissions.
  2. Highlight the application and select Edit Permissions from the menu.
  3. Expand Interactions and set the Browser Filters option to Allow.


Additional Information