on 11-23-2005 11:15 AM
Hi all,
Is possible to change password of current user?
I read password with this code:
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IUserAccount[] IUA = user.getUserAccounts();
String password = IUA[0].getHashedPassword();
but I don't find method to set new password...
Thanks
Andrea
Hello Andrea,
Hm...From here https://media.sdn.sap.com/javadocs/NW04/SP9/ume/com/sap/security/api/IUserAccount.html
I`m getting following:
...
void setPassword(java.lang.String pass)
Changes user password to newpass.
void setPassword(java.lang.String oldpass, java.lang.String newpass)
Changes user password from oldpass to newpass.
...
best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...
See
UMFactory.getUserAccountFactory().getMutableUserAccount("logon-id").*
first one for "process mode": application change or reset password itself, user has to change password on next logon (there should one other method called setPasswordChangeRequired() )
second one for "interactive mode": user initates password changing and provides old and new password.
VS
Message was edited by: Valery Silaev
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.