Help Center
Local Navigation
- Creating user interfaces
- Storing data
- Creating connections
- Network gateways
- Connections
- Wi-Fi connections
- Wireless access families
- Retrieve the wireless access families that a BlackBerry device supports
- Determine if a BlackBerry device supports multiple wireless access families
- Determine the wireless access family transceivers that are turned on
- Turn on the transceiver for a wireless access family
- Turn off the transceiver for a wireless access family
- Check if the Wi-Fi transceiver is turned on
- Check if the Wi-Fi transceiver is connected to a wireless access point
- Retrieve the status of the wireless access point or the active Wi-Fi profile
- Open a Wi-Fi socket connection
- Open a Wi-Fi HTTP connection
- Open a Wi-Fi HTTPS connection
- Managing applications
- Using custom messages and folders in the message list
- Applications for push content
- Localizing BlackBerry device applications
- Controlling access to APIs and application data
- Testing a BlackBerry device application
- Packaging and distributing a BlackBerry Java Application
- Glossary
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
Development Guide - BlackBerry Java Development Environment - 4.7.0
Use an HTTPS connection
If your BlackBerry device is associated with a BlackBerry® Enterprise Server and uses an HTTPS proxy server that requires authentication, you will not be able to use end-to-end TLS.
- Import the following classes:
- Import the following interfaces:
- Use the CoverageInfo class and CoverageStatusListener interface of the net.rim.device.api.system package to make sure that the BlackBerry device is in a wireless network coverage area.
- Invoke Connector.open(), specifying HTTPS as the protocol and cast the returned object as an HttpsConnection object to open an HTTP connection.
HttpsConnection stream = (HttpsConnection)Connector.open("https://host:443/"); - To specify the connection mode,
add one of the following parameters to the connection string that passes to
Connector.open()
- Specify that an end-to-end HTTPS connection must be used from the BlackBerry device to the target server: EndToEndRequired
- Specify that an end-to-end HTTPS connection should be used from the BlackBerry device to the target server. If the BlackBerry device does not support end-to-end TLS, and the BlackBerry device user permits proxy TLS connections, then a proxy connection is used: EndToEndDesired.
HttpsConnection stream = (HttpsConnection)Connector.open("https://host:443/;EndToEndDesired");
Parent topic: Connections