public void tryBuildDbAuthenticator(final Map<String, Authenticator> authenticators, final Map<String, PasswordEncoder> encoders) {
        for (var i = 0; i <= MAX_NUM_AUTHENTICATORS; i++) {
            if (containsProperty(DB_DATASOURCE_CLASS_NAME, i) || containsProperty(DB_JDBC_URL, i)) {
                try {
                    val ds = buildDataSource(i);
                    val authenticator = new DbProfileService(ds);
                    if (containsProperty(DB_ATTRIBUTES, i)) {
                        authenticator.setAttributes(getProperty(DB_ATTRIBUTES, i));
                    }
                    if (containsProperty(DB_USER_ID_ATTRIBUTE, i)) {
                        authenticator.setIdAttribute(getProperty(DB_USER_ID_ATTRIBUTE, i));
                    }
                    if (containsProperty(DB_USERNAME_ATTRIBUTE, i)) {
                        authenticator.setUsernameAttribute(getProperty(DB_USERNAME_ATTRIBUTE, i));
                    }
                    if (containsProperty(DB_USER_PASSWORD_ATTRIBUTE, i)) {
                        authenticator.setPasswordAttribute(getProperty(DB_USER_PASSWORD_ATTRIBUTE, i));
                    }
                    if (containsProperty(DB_USERS_TABLE, i)) {
                        authenticator.setUsersTable(getProperty(DB_USERS_TABLE, i));
                    }
                    if (containsProperty(DB_PASSWORD_ENCODER, i)) {
                        authenticator.setPasswordEncoder(encoders.get(getProperty(DB_PASSWORD_ENCODER, i)));
                    }
                    authenticators.put(concat("db", i), authenticator);
                } catch (final SQLException e) {
                    throw new TechnicalException(e);
                }
            }
        }
    }
<p>tryBuildDbAuthenticator.</p>

@param authenticators a {@link Map} object
@param encoders a {@link Map} object
pac4j-config/src/main/java/org/pac4j/config/builder/DbAuthenticatorBuilder.java