class AbstractHardcodePasswordInMapDetector extends BasicInjectionDetector {

    private static List<String> PASSWORD_WORDS = new ArrayList<String>();

    static {
        //Passwords in various language
        //http://www.indifferentlanguages.com/words/password
        PASSWORD_WORDS.add("password");
        PASSWORD_WORDS.add("motdepasse");
        PASSWORD_WORDS.add("heslo");
        PASSWORD_WORDS.add("adgangskode");
        PASSWORD_WORDS.add("wachtwoord");
        PASSWORD_WORDS.add("salasana");
        PASSWORD_WORDS.add("passwort");
        PASSWORD_WORDS.add("passord");
        PASSWORD_WORDS.add("senha");
        PASSWORD_WORDS.add("geslo");
        PASSWORD_WORDS.add("clave");
        PASSWORD_WORDS.add("losenord");
        PASSWORD_WORDS.add("clave");
        PASSWORD_WORDS.add("parola");
        //Others
        PASSWORD_WORDS.add("secretkey");
        PASSWORD_WORDS.add("pwd");
    }

    public AbstractHardcodePasswordInMapDetector(BugReporter bugReporter) {
        super(bugReporter);
    }

    @Override
    protected int getPriorityFromTaintFrame(TaintFrame fact, int offset)
            throws DataflowAnalysisException {<FILL_FUNCTION_BODY>}
}

        Taint valueTaint = fact.getStackValue(0);
        Taint parameterTaint = fact.getStackValue(1);

        if (valueTaint.getConstantValue() == null || parameterTaint.getConstantValue() == null) {
            return Priorities.IGNORE_PRIORITY;
        }

        String parameterValue = parameterTaint.getConstantValue().toLowerCase();
        if (parameterValue.equals("java.naming.security.credentials")) {
            return Priorities.NORMAL_PRIORITY;
        }
        for (String password : PASSWORD_WORDS) {
            if (parameterValue.contains(password)) {//Is a constant value
                return Priorities.NORMAL_PRIORITY;
            }
        }
        return Priorities.IGNORE_PRIORITY;
    
<methods>public void registerVisitor(com.h3xstream.findsecbugs.taintanalysis.TaintFrameAdditionalVisitor) <variables>static com.h3xstream.findsecbugs.injection.ClassMethodSignature OBJECT,private static final com.h3xstream.findsecbugs.injection.SinksLoader SINKS_LOADER,private final Map<com.h3xstream.findsecbugs.injection.ClassMethodSignature,com.h3xstream.findsecbugs.injection.InjectionPoint> injectionMap