|
|
|
Re: How to temporarily store data to use after PlatformUI.getWorkbench().restart(); [message #483419 is a reply to message #483409] |
Tue, 01 September 2009 10:57  |
Eclipse User |
|
|
|
Eclipse User wrote on Tue, 01 September 2009 10:13 | Originally posted by: TheRealHawk.Freenet.de
But I want to hold my login-data to do a relogin after restart and therefore
I don't want to store the data permanently.
|
The IMemento (which is a standard way to store application state between restarts) will exist until the next restart. If that's too long for you, then you should write out the information to a file in your plugin state location when your bundle stops (and you know you're doing a restart), and read it in (and delete the file) when your plugin starts (on next startup).
Then it's only on disk for the length of the restart.
Eclipse has bundles (like Equinox secure storage) that would allow you to encrypt it while on the disk ... you still need a key in your code to encrypt/unencrypt, but at least it wouldn't be plain text.
PW
|
|
|
Powered by
FUDForum. Page generated in 0.03715 seconds