Community
Participate
Working Groups
Created attachment 94919 [details] Patch At present secure preferences don't differentiate between null values and empty strings. In fact, nulls passed in are converted to empty strings. The patch adds a differentiation (the null values will omit "," separator between salt and value and will have both as empty strings). The null values won't be encrypted so the entry in the output file will be simple "\t". The patch adds an extra JUnit to check for edge values for strings and byte arrays. As a part of the this work I discovered that I needed to check if we are runing inside a JUnit before bringing up UI prompts :-). There is a code added that checks first to see it workbench is active and then checks if the application is "org.eclipse.pde.junit.runtime.*".
Patch applied to CVS Head.