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:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user