KEYCLOAK-5840 Remove unused config map in AddUser command
The only value put into this config map is the
password hash iterations count.
But `iterations` is used directly with the
hashProvider.
See:
73c82d296e/files/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java (x490b537b199a8415)
:1
This commit is contained in:
parent
290f6ed2ad
commit
5d8f449ea0
1 changed files with 0 additions and 7 deletions
|
@ -32,7 +32,6 @@ import org.keycloak.common.util.Base64;
|
|||
import org.keycloak.credential.CredentialModel;
|
||||
import org.keycloak.credential.hash.PasswordHashProvider;
|
||||
import org.keycloak.credential.hash.PasswordHashProviderFactory;
|
||||
import org.keycloak.credential.hash.Pbkdf2PasswordHashProviderFactory;
|
||||
import org.keycloak.models.PasswordPolicy;
|
||||
import org.keycloak.representations.idm.CredentialRepresentation;
|
||||
import org.keycloak.representations.idm.RealmRepresentation;
|
||||
|
@ -47,7 +46,6 @@ import java.lang.reflect.Method;
|
|||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.ServiceLoader;
|
||||
|
||||
/**
|
||||
|
@ -158,11 +156,6 @@ public class AddUser {
|
|||
user.setUsername(userName);
|
||||
user.setCredentials(new LinkedList<CredentialRepresentation>());
|
||||
|
||||
Map<String, Object> config = new HashMap<>();
|
||||
if (iterations > 0) {
|
||||
config.put("hashIterations", iterations);
|
||||
}
|
||||
|
||||
PasswordHashProviderFactory hashProviderFactory = getHashProviderFactory(DEFAULT_HASH_ALGORITH);
|
||||
PasswordHashProvider hashProvider = hashProviderFactory.create(null);
|
||||
|
||||
|
|
Loading…
Reference in a new issue