|
|
Classification: |
Java |
Category: |
java.net |
Created: |
11/15/2001 |
Modified: |
09/11/2002 |
Number: |
FAQ-0752 |
Platform: |
Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s |
|
Question: Can I use https in Java applications on Symbian OS? What about SSL Sockets?
Answer: Limited support for https was introduced into v6 of Symbian OS Java Runtime. The support is provided through a number of classes
provided in javaphone.jar, which you should ensure is on your classpath. For this reason https functionality is not available
to applets. You can make use of https connections in your application by passing an "https://" URL to either of the following standard
system classes:
java.net.URLStreamHandler java.net.HttpURLConnection
The https provider classes in javaphone.jar will then be used seamlessly. Note that SSL Socket support is not provided. It
is not possible either to instantiate a java.net.Socket object using an "https://" URL. The SimpleHttpsSocket class defined
in javaphone.jar is intended only for use in generating InputStreams and OutputStreams via the appropriate URLStreamHandler-derived
class.
You should be aware that use of the APIs above will only give you access to a byte stream. To perform handshaking and encryption/decryption
of data sent over the secure sockets layer, you will need to have suitable certificate, key and cipher suite facilites available
separately on the device. The Symbian OS Java Runtime does not provide these as standard.
|
|
|