use of org.graylog2.security.hashing.BCryptPasswordAlgorithm in project graylog2-server by Graylog2.
the class MigrationHelpersTest method newUser.
private User newUser(Permissions permissions) {
final BCryptPasswordAlgorithm passwordAlgorithm = new BCryptPasswordAlgorithm(10);
final PasswordAlgorithmFactory passwordAlgorithmFactory = new PasswordAlgorithmFactory(Collections.emptyMap(), passwordAlgorithm);
return new UserImpl(passwordAlgorithmFactory, permissions, ImmutableMap.of());
}
Aggregations