Class SinksLoader
- java.lang.Object
-
- com.h3xstream.findsecbugs.injection.SinksLoader
-
public class SinksLoader extends Object
The sanity of the sinks file is crucial (a typo == missed API == missed vulnerability). The loader was extracted from the BasicInjectionDetector class in order to reuse the parsing logic.- See Also:
com.h3xstream.findsecbugs.injection.SinkFilesValidationTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSinksLoader.InjectionPointReceiverInterface that imitate lambda pattern.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSinksLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSink(String fullMethodName, int[] injectableParameters, String bugType, SinksLoader.InjectionPointReceiver receiver)protected voidloadConfiguredSinks(String filename, String bugType, SinksLoader.InjectionPointReceiver receiver)protected voidloadSink(String line, String bugType, SinksLoader.InjectionPointReceiver receiver)protected voidloadSinks(InputStream input, String bugType, SinksLoader.InjectionPointReceiver receiver)
-
-
-
Method Detail
-
loadConfiguredSinks
protected void loadConfiguredSinks(String filename, String bugType, SinksLoader.InjectionPointReceiver receiver)
-
loadSinks
protected void loadSinks(InputStream input, String bugType, SinksLoader.InjectionPointReceiver receiver) throws IOException
- Throws:
IOException
-
loadSink
protected void loadSink(String line, String bugType, SinksLoader.InjectionPointReceiver receiver)
-
addSink
protected void addSink(String fullMethodName, int[] injectableParameters, String bugType, SinksLoader.InjectionPointReceiver receiver)
-
-