private static final String FORCE_PROJECT = "Force Projects";
private ISecurePreferences root;
public void addAuthorizationInfo(String AUTH_URL, IProject project, String AUTH_TYPE, Map credentialMap) {
root = SecurePreferencesFactory.getDefault();
ISecurePreferences node = root.node(FORCE_PROJECT + "/" + project.getName());
try {
logger.info("Saving values in secure storage");
node.put(PROP_PASSWORD, credentialMap.get(PROP_PASSWORD).toString(), true);
node.put(PROP_TOKEN, credentialMap.get(PROP_TOKEN).toString(), true);
} catch (StorageException e) {
logger.error("Unable to store values in equinox secure storage", e);
}