Instantiate SSLSocket object, write the request to socket.getOutputStream() stream and
read data from the stream obtained by socket.getInputStream()
Call setProvider() method of the URLConnection object and pass SSL provider instance
Instantiate SSLSocketFactory, create socket using createSocket() method,
write the request to socket.getOutputStream() stream and
read data from the stream obtained by socket.getInputStream()
Instantiate SSLSocket object and read data from the stream obtained by socket.getInputStream()
Just add SSL provide to Security object and map it to URL using mapProvider() method.
All requests to this URL will go through SSL.
Instantiate SSLSocketFactory, create socket using createSocket() method and
read data from the stream obtained by socket.getInputStream()
|