summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Barone <syntonyze@gmail.com>2019-10-14 18:08:12 +0100
committerDavid Pursehouse <dpursehouse@digital.ai>2020-05-29 07:53:43 +0000
commit815d1f5626761e03e46e0efb7bc4cf91d8b9732f (patch)
tree120103687e187fc49c15bfadfef9dc4f65755872
parent564ed20845bab16e8df7366813a23b56b62b95d2 (diff)
Make SecureCredentialsFactory publicv2.16.21
Access to secure.config is useful to more than just replication plugin. Allow instantiating this class from packages other than replication plugin. Specifically this is useful, as this class can be used from pull-replication too. Change-Id: Id268c869e993c6cabacfa0043ec269172e0efba1 (cherry picked from commit c09a7c08fb44094c7475313ac52154adac39a54c)
-rw-r--r--src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java b/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java
index c518091..e79491c 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java
@@ -24,11 +24,11 @@ import org.eclipse.jgit.storage.file.FileBasedConfig;
import org.eclipse.jgit.util.FS;
/** Looks up a remote's password in secure.config. */
-class SecureCredentialsFactory implements CredentialsFactory {
+public class SecureCredentialsFactory implements CredentialsFactory {
private final Config config;
@Inject
- SecureCredentialsFactory(SitePaths site) throws ConfigInvalidException, IOException {
+ public SecureCredentialsFactory(SitePaths site) throws ConfigInvalidException, IOException {
config = load(site);
}