Java: Refactor RsaWithoutOaep.

This commit is contained in:
Anders Schack-Mulligen
2023-03-15 10:37:54 +01:00
parent b3b5c2c767
commit 6408d7cbbe
3 changed files with 31 additions and 11 deletions

View File

@@ -3,12 +3,10 @@ import TestUtilities.InlineExpectationsTest
import TestUtilities.InlineFlowTest
import semmle.code.java.security.RsaWithoutOaepQuery
class EnableLegacy extends EnableLegacyConfiguration {
EnableLegacy() { exists(this) }
}
class HasFlowTest extends InlineFlowTest {
override DataFlow::Configuration getTaintFlowConfig() { result instanceof RsaWithoutOaepConfig }
override predicate hasValueFlow(DataFlow::Node src, DataFlow::Node sink) { none() }
override DataFlow::Configuration getValueFlowConfig() { none() }
override predicate hasTaintFlow(DataFlow::Node src, DataFlow::Node sink) {
RsaWithoutOaepFlow::hasFlow(src, sink)
}
}