UserAdmin wrong password data after restart equinox [message #114019] |
Fri, 11 July 2008 11:25 |
Eclipse User |
|
|
|
Hi,
Im using the UserAdmin Service to create a user administration and get
some strange effect when stop and starting equinox
If I create a user with
User user = (User) userAdmin.createRole("Admin", Role.USER);
user.getProperties().put("login.name", "Admin");
user.getCredentials().put("login.password", "osgi");
((Group)adminstrators).addMember(user);
in an init() Method of my User Administration and then close the equinox
console equinox stores the data in an preference file on the disk. If I
open this file I can see my user "Admin" with his password osgi. If I
now start equinox console again and print a list of all users I see this:
User Admin:
Properties: {login.name=Admin}
Credentials: {login.password=[B@1a5ee7c}
which should normally look like this:
Properties: {login.name=Admin}
Credentials: {login.password=osgi}
Has someone n idea why the password is something like this above and not
the originally one????
Thanks for your answers!
|
|
|
Powered by
FUDForum. Page generated in 0.05819 seconds