Data AccessCore JavaApp FrameworksViewTestingBuildingDeploymentDev ToolsSecurityOpinions

Thursday, November 3, 2011

SSL Connections over a proxy using JSSE

The Java Secure Socket Extension (JSSE) enables secure Internet communications. It provides a framework and an implementation for a Java version of the SSL and TLS protocols and includes functionality for data encryption, server authentication, message integrity, and optional client authentication. Using JSSE, developers can provide for the secure passage of data between a client and a server running any application protocol, such as Hypertext Transfer Protocol (HTTP), Telnet, or FTP, over TCP/IP.

The https protocol is similar to http, but https first establishes a secure channel via SSL/TLS sockets and then verifies the identity of the peer before requesting/receiving data. javax.net.ssl.HttpsURLConnection extends the java.net.HttpsURLConnection class, and adds support for https-specific features. Upon obtaining a HttpsURLConnection, you can configure a number of http/https parameters before actually initiating the network connection via the method URLConnection.connect.

In some situations, it is desirable to specify the SSLSocketFactory that an HttpsURLConnection instance uses. For example, you may wish to tunnel through a proxy type which is NOT supported by the default implementation. The new SSLSocketFactory could return sockets that have already performed all necessary tunneling, thus allowing HttpsURLConnection to use additional proxies.

Post your issue below, and I'll try and answer your JSSE questions.


References:
  1. JSSE Reference Guide for Java SE6
  2. JSSE Reference Guide for Java SE6 - Hostname Verifier
  3. javadoc: javax.net.ssl.SSLSocketFactory
  4. javadoc: javax.net.ssl.HttpsURLConnection
  5. javadoc: java.net.URLConnection
  6. javadoc: java.net.URL.openConnection()

41 comments:

  1. Hay Dear, Do you find to web proxy free,proxy web free,unblock web proxy,secure proxy,unblock website proxy. I suggest you to visit this site. There are a lot of web proxy . For details: unblock web proxy

    ReplyDelete
  2. I read your article and get very important information in addition if you have any query you can click here.
    Monova UK proxy

    ReplyDelete
  3. This is great do you have a catologue if so I would love one to share with friends and family.
    ipl 2016 auction live Yuvraj Singh
    IPL 2016 Auction Kings xi
    IPL 2016 Team Players MI KKR

    ReplyDelete
  4. Want to watch the Euro Cup Pre quarter knock out matches live just check out Italy Vs Spain Live Streaming

    ReplyDelete
  5. It’s an unusual privilege to read quality articles these days. Your article has the qualities of great professionally written content that’s unique, original and interesting.

    ReplyDelete
  6. Since online banks prepare their installments electronically, this makes the reimbursement procedure simple and advantageous.

    ReplyDelete
  7. On the off chance that you adhere to your month to month spending plan, and just utilize this type of credit for a brief timeframe, obtaining what you can bear to reimburse, you will have no issues with a fleeting advance.

    ReplyDelete
  8. Elective loaning alternatives may not be the best for long haul arrangements, yet moment vehicle title advances and payday credits keep on attracting new and old clients consistently.

    ReplyDelete
  9. Excessively numerous Americans live without financial balances, live on not as much as steady salary or questionable cash openings.

    ReplyDelete
  10. Payday advances have been around for some time, are as yet a mainstream alternative among a large number of individuals who need to get to crisis money.

    ReplyDelete
  11. Intermediaries are fit for keeping you absolutely mysterious from programmers and logs. vpn ip mexico

    ReplyDelete
  12. I wish to show thanks to you just for bailing me out of this particular
    trouble.As a result of checking through the net and meeting
    techniques that were not productive, I thought my life was done.


    java Training in Bangalore



    java training in chennai

    ReplyDelete
  13. Is it accurate to say that you will make a beeline for a car title advance bank for additional money
    Payday Loans
    Payday Loans
    Car Title Loans
    Cash Advance Chula-vista
    Payday Loans Corona

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. The distance between your country and the server's country matters a lot. The longer the distance,popcorn time the slow the connection speed will be.

    ReplyDelete
  16. Considering this to be an opportunity, budgetary foundations acquainted check getting the money for administrations with the clients. Cash Advances San diego

    ReplyDelete
  17. Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts.
    Devops training in Chennai

    ReplyDelete
  18. I am doing a report on this subject. Your article is full of really useful information. I will make sure to come back to check out your posts for my next report. Visit website

    ReplyDelete
  19. Extremely pleasant article, I appreciated perusing your post, exceptionally decent share, I need to twit this to my adherents. Much appreciated!.  diebestenvpn

    ReplyDelete
  20. I respect this article for the very much investigated substance and magnificent wording. I got so included in this material that I couldn't quit perusing. I am awed with your work and aptitude. Much obliged to you to such an extent. VPN

    ReplyDelete
  21. Trader loans help entrepreneur's open entryways for better sorts of financing openings. The business loan industry is moving at a constant rate. This consistently expanding development is on account of conventional bank credits are not taking care of the requests of entrepreneurs.Cash Advance

    ReplyDelete
  22. I simply wanted to thank you a lot more for your amazing website you have developed here. It can be full of useful tips for those who are actually interested in this specific subject, primarily this very post. https://getmoreprivacy.com/

    ReplyDelete
  23. wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. lemigliorivpn

    ReplyDelete
  24. Tracert shows the association way to the objective area and the quantity of bounces. Each bounce is the trek starting with one switch then onto the next. my router ip

    ReplyDelete
  25. wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. lesmeilleursvpn

    ReplyDelete
  26. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info  Meer hierover leest je hier

    ReplyDelete
  27. With the Internet, online business is quickly venturing into a quick moving, open worldwide market with a consistently expanding number of members. prywatnoscwsieci

    ReplyDelete
  28. Your blogs are easily accessible and quite enlightening so keep doing the amazing work guys. deze website

    ReplyDelete
  29. Having a VPS additionally empowers you to have more than one website relying upon your prerequisite. You can likewise settle on the reinforcement space required on the server hosting

    ReplyDelete



  30. Our client can choose any of them as per their convenient. We are also open to send our angels any other place of your choice. Escorts Service in Aerocityare waiting eagerly to meet you. You need to decide whether you want to meet them at home or at any hotel. If you are facing any challenges in arranging any place, let me inform you that we have tie-ups with 3 start hotels as well as 5 start hotels. Check our other services...
    Escorts Service in Aerocity
    Escorts Service in Aerocity
    Escorts Service in Aerocity
    Escorts Service in Aerocity
    Escorts Service in Aerocity



    ReplyDelete

  31. The hectic world, a usual silhouette of wrinkled-faces and lack of time & good people make absolute absence of Love in our lives. Only a smile means to exist in the whole world bringing itself a Comet of Love. So it takes you believe onCall Girls in Udaipurliable to fulfill your lives with real sense of love. Check our other Services...
    Independent Call Girls in Udaipur
    Udaipur Call Girls Service
    Call Girls in Hotels in Udaipur
    Escorts in Udaipur
    Escorts Service in Udaipur
    Housewife Escorts in Udaipur
    Hi Profile Escorts in Udaipur

    ReplyDelete