Package com.h3xstream.findsecbugs.crypto
Class WeakTrustManagerDetector
- java.lang.Object
-
- com.h3xstream.findsecbugs.crypto.WeakTrustManagerDetector
-
- All Implemented Interfaces:
edu.umd.cs.findbugs.Detector,edu.umd.cs.findbugs.Priorities
public class WeakTrustManagerDetector extends Object implements edu.umd.cs.findbugs.Detector
The first reflex for developer that encounter web services that have unsigned certificate is often to trust all certificates.
To trust everything, the standard API for SSL communication requires the implementation of a child interface of "javax.net.ssl.TrustManager" (marker interface). Commonly, X509TrustManager is being used.
Sample of code being used- See Also:
TrustManager,X509TrustManager
-
-
Constructor Summary
Constructors Constructor Description WeakTrustManagerDetector(edu.umd.cs.findbugs.BugReporter bugReporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreport()voidvisitClassContext(edu.umd.cs.findbugs.ba.ClassContext classContext)
-