class PasswordLoginModuleProvider implements AppConfigEntryProvider {

    @Override
    public Map<String, Object> getModuleConfig() {
        Map<String, Object> passwordOptions = new HashMap<>();
        passwordOptions.put(LoginModuleConfig.ENGINE_MANAGER, engineManager);
        passwordOptions.put(BundleContext.class.getName(), context);
        passwordOptions.put(ProxyLoginModule.BUNDLE_ID, Long.toString(context.getBundle().getBundleId()));
        passwordOptions.put(ProxyLoginModule.MODULE, PasswordLoginModule.class.getName());
        return passwordOptions;
    }

}