Motorola maxx V6 manual Https Connection, Draft Subject to Change 154/201

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 154
Image 154

Java ME Developer Guide

Chapter 22 - Network APIs

Figure 18 Network Connections example

Conversely, when the network connection is no longer used the network icon will be removed from the status bar.

If the handset supports applications that run when the flip is closed, the network icon on the external display will be activated when the application is in an active network connection with the flip closed. Please note that this indication is done by the imple- mentation.

22.4 HTTPS Connection

Motorola implementation supports a HTTPS connection on the MOTORAZR maxx V6 handset. Additional protocols that will be supported are the following:

TLS protocol version 1.0 as defined in http://www.ietf.org/rfc/rfc2246.txt

SSL protocol version 3.0 as defined in http://wp.netscape.com/eng/ssl3/ssl-toc.html

Code Sample 9 shows the implementation of HTTPS:

HTTPS

import javax.microedition.io.*; import java.io.*;

import javax.microedition.midlet.*;

try {

hc[i] = (HttpConnection)Connector.open("https://" + url[i] + "/");

} catch (Exception ex) {

DRAFT - Subject to Change [154/201]

Page 154
Image 154
Motorola maxx V6 manual Https Connection, Draft Subject to Change 154/201