[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iaik-ssl] Problem with HttpConnection and SSLContext



HTTPClient is not our software and we cannot support it.

 Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.at


-----Ursprüngliche Nachricht-----
Von: Piron Frédéric <fpir@etb.bel.alcatel.be>
An: SSL <iaik-ssl@iaik.tu-graz.ac.at>
Gesendet: Freitag, 10. Dezember 1999 17:25
Betreff: [iaik-ssl] Problem with HttpConnection and SSLContext


> Hello,
>
> I try to implement a secure connection between my Java Application and
a
> servlet (call of an URL in https). I try to use the following code to
> construct an URL with HTTPS:
>
> System.getProperties().put("java.protocol.handler.pkgs", "HTTPClient");
> (authorize https)
>      URL url = new URL("https://andromeda.iaik.tu-graz.ac.at:443/");
>      System.out.println("connecting to "+url);
>      HTTPConnection con = new HTTPConnection(url);
>      _HttpResponse = con.Get("Servlet/servlet_login");
>      _inputstream = _HttpResponse.getInputStream();
>      _bufferedreader = new BufferedReader(new
> InputStreamReader(_inputstream));
>
> but I don't know how use the SSLContext methods :
>
> file://SSLClientContext context = new SSLClientContext();
> //        context.setEnabledCipherSuites(cs);
> //     con.setSSLClientContext(context);
>
> how can I make the link these to blocks???
>
> thanks in advance
>
>
> frederic
>
> --
> Mailinglist-archive at
http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-ssl/maillist.html
>
> To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the
folowing content: UNSUBSCRIBE iaik-ssl
>
>
>


smime.p7s