Window -> Preferences -> General -> Security -> Secure Storage, switch to 
the "Contents" tab; press "Delete". 

That said, regular changing of the Windows password should not invalidate 
the secure storage. There are some situations described here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=274128

that can cause that to happen; most notably it happens when administrator 
resets user's password.

Sincerely,
Oleg Besedin



From:
魏昕路 <[email protected]>
To:
[email protected]
Date:
02/01/2010 07:19 AM
Subject:
[equinox-dev] Re: SecureStorage: Can not get the password after system 
user password has been changed
Sent by:
[email protected]



Make the question simpler:

How to delete the secure storage when the system user password has been 
changed?
 
2010/2/1 魏昕路 <[email protected]>
Hello,
 
I'm using secure storage to store my password. I changed my system 
password by the prompt that I'm getting from the windows logon screen as a 
reminder that my password expired. After that, the password can not be 
read and it can not be stored again. It only occurs on some of my Winodws 
machines.
 
I'm thinking about solve the problem by removing the secore_storage file 
in C:\Documents and 
Settings\Administrator\.eclipse\org.eclipse.equinox.security when get 
exception when reading the password. However, there's only one internal 
method "InternalExchangeUtils.defaultStorageDelete()". I'm not supposed to 
use that internal method although it did solve the problem.
 
I also tried to use my own secure_storage file. The code I used to open 
and delete my secure preference is:
 
root = SecurePreferencesFactory.open(storeUrl, null);
passwordNode = ibgRoot.node(PASSWORD_NODE);
 
public static void clearStore() {
{
    ....
    passwordNode.clear();
    passwordNode = null;
    ....
    File file = new File(storeUrl.getPath());
    file.delete();
}
 
But still I can't store the password. There'll be a StorageException when:
 
passwordNode.put(PASSWORD_KEY, password, true); 
 
I think something should have been missed in clearStore(). (maybe close() 
?)
Is there any one in the list can help me?  Thank you!



-- 
魏昕路
email: [email protected]
MSN: [email protected]_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev



_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to