Add API to make SecureStore switching possible

In order to be able to implement switching the SecureStore
implementation we need to obtain a list of the currently stored values in the
SecureStore. For this purpose a list() method was added to SecureStore
interface.

Then we can decode them using the old implementation and encrypt with new
one and also replace the secure store jar file in the lib folder and
change the configuration in the gerrit.config in a separate site
program.

Change-Id: Ia270d0ee4a708b5724601902f3382bea3ae45356
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
This commit is contained in:
Dariusz Luksza
2014-09-09 18:37:45 +02:00
parent dab88b1ab1
commit d984b9c6ce
3 changed files with 35 additions and 0 deletions

View File

@@ -144,5 +144,10 @@ public class UpgradeFrom2_0_xTest extends InitTestCase {
public void unset(String section, String subsection, String name) {
cfg.unset(section, subsection, name);
}
@Override
public Iterable<EntryKey> list() {
throw new UnsupportedOperationException("not used by tests");
}
}
}