CodeQL library for Java
codeql/java-all 0.4.4 (changelog, source)
Search

Predicate passwordFieldAssignedHardcodedValue

Holds if non-empty constant value e is assigned to password field f.

Import path

import semmle.code.java.security.HardcodedPasswordField
predicate passwordFieldAssignedHardcodedValue(PasswordVariable f, CompileTimeConstantExpr e)