File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Trust Strategy Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Trust Strategy Question" Watch "Trust Strategy Question" New topic
Author

Trust Strategy Question

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

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?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trust Strategy Question
 
Similar Threads
java.net.ConnectException: Connection timed out in HttpClient
Any way to overcome Circular Redirect using HttpClient 4.1.1
How to create REST CLIENT for HTTPS in Java?
HttpClient Exception
using a crawler to invoke a google search & analyse google results