Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trust Strategy Question  RSS feed

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a HTTPS url that I would like to call from my Apache HTTP Client. When I tried it with the following piece of code, it failed with the exception as below:





Later, I added the following and gave the connManager to my DefaultHttpClient constructor:



My question is with the above Strategy, am I bypassing any security? I'm overriding isTrusted and simply returning true. Is that advisable?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!