Search in sources :

Example 1 with CreateUserAccountAction

use of edu.stanford.bmir.protege.web.shared.user.CreateUserAccountAction in project webprotege by protegeproject.

the class CreateUserAccountExecutor method execute.

public void execute(UserId userId, EmailAddress emailAddress, String clearTextPassword, DispatchServiceCallback<CreateUserAccountResult> callback) {
    Salt salt = saltProvider.get();
    SaltedPasswordDigest saltedPasswordDigest = passwordDigestAlgorithm.getDigestOfSaltedPassword(clearTextPassword, salt);
    dispatchServiceManager.execute(new CreateUserAccountAction(userId, emailAddress, saltedPasswordDigest, salt), callback);
}
Also used : Salt(edu.stanford.bmir.protege.web.shared.auth.Salt) SaltedPasswordDigest(edu.stanford.bmir.protege.web.shared.auth.SaltedPasswordDigest) CreateUserAccountAction(edu.stanford.bmir.protege.web.shared.user.CreateUserAccountAction)

Aggregations

Salt (edu.stanford.bmir.protege.web.shared.auth.Salt)1 SaltedPasswordDigest (edu.stanford.bmir.protege.web.shared.auth.SaltedPasswordDigest)1 CreateUserAccountAction (edu.stanford.bmir.protege.web.shared.user.CreateUserAccountAction)1