use of org.neo4j.server.security.enterprise.auth.InternalFlatFileRealm in project neo4j by neo4j.
the class FlatFileStressBase method setup.
@Before
public void setup() throws Throwable {
Config config = Config.defaults();
LogProvider logProvider = NullLogProvider.getInstance();
JobScheduler jobScheduler = new NoopJobScheduler();
userRepository = CommunitySecurityModule.getUserRepository(config, logProvider, getFileSystem());
roleRepository = EnterpriseSecurityModule.getRoleRepository(config, logProvider, getFileSystem());
flatFileRealm = new InternalFlatFileRealm(userRepository, roleRepository, new BasicPasswordPolicy(), new RateLimitedAuthenticationStrategy(Clock.systemUTC(), 3), jobScheduler, CommunitySecurityModule.getInitialUserRepository(config, logProvider, getFileSystem()), EnterpriseSecurityModule.getDefaultAdminRepository(config, logProvider, getFileSystem()));
flatFileRealm.init();
flatFileRealm.start();
}
Aggregations