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()

28 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. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

    Online Java Training Java Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai

    ReplyDelete

  6. Have you heard about National Black Cat Day which is two days prior to National Cat Day.
    Check out my blog to get all the latest information about it and stay updated.

    ReplyDelete
  7. Wazifa Husband Love Istikhara Online
    Wazifa Husband Love Istikhara Online , ” English:- Sometimes we have been noticed In some familiest husband and wife often quarrel on a small matter with each other.
    Man Pasand Shadi ka Wazifa
    Man Pasand Shadi ka Wazifa , ” Man Pasand Shadi Love Marriage Aaj key es nafsa nafsi k daor main jis taraf dekhen har shukhs musibatun aur Muskhkalun main ghira howa hai muskhilen aur azmaishen kabhi tou batoor imtihan hoti hai aur kabhi batoor-e-saza e amaal.
    Wazifa For Job Interview
    Wazifa For Job Interview , ” It is the very tough time for the person who is going for job interview when he or she goes for job interview different paranoid comes to mind that i will qualify or not what will be the interviewer
    Wazifa For husband and wife love
    Wazifa For husband and wife love , ” The relation of Husband and wife want extra care because it is very strong and also sensitive relation.Keep in mind that give most respect to each other don’t quarrel with each other if husband or wife don’t give attention,time then take extra
    Wazifa to Stop Job Transfer
    Wazifa to Stop Job Transfer , ” You will know better if you are doing job with multinational or governament organization that sometimes your transfer are make when you are unwilling by that transfer which are done by company for their benefit or sometime to punish you however the issue

    ReplyDelete
  8. 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
  9. Since online banks prepare their installments electronically, this makes the reimbursement procedure simple and advantageous.

    ReplyDelete
  10. Even those banks that lend money bills you a really high rate of curiosity
    Edirne Klima Servisi secured lenders
    will most likely process your loan application as quickly as is possible.

    ReplyDelete
  11. 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
  12. 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
  13. Excessively numerous Americans live without financial balances, live on not as much as steady salary or questionable cash openings.

    ReplyDelete
  14. 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