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

39 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
  15. Intermediaries are fit for keeping you absolutely mysterious from programmers and logs. vpn ip mexico

    ReplyDelete
  16. I like to get up early to go out and breathe fresh air. I feel that it is good for health and a good habit
    povaup

    ReplyDelete
  17. 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
  18. 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
  19. This comment has been removed by the author.

    ReplyDelete
  20. 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
  21. Considering this to be an opportunity, budgetary foundations acquainted check getting the money for administrations with the clients. Cash Advances San diego

    ReplyDelete
  22. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

    ReplyDelete