]> source.dussan.org Git - jgit.git/commitdiff
PushCertificateParser: Make constructor public 29/51629/3
authorDave Borowitz <dborowitz@google.com>
Thu, 9 Jul 2015 01:41:32 +0000 (18:41 -0700)
committerDave Borowitz <dborowitz@google.com>
Thu, 9 Jul 2015 18:50:11 +0000 (11:50 -0700)
Primarily to aid in writing end-to-end tests, which must be written
outside this package as we don't currently have a Bouncy Castle
dependency.

Change-Id: Ia24179773140d9ecc616b3a6b2e630c85d800157

org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java

index 6494aea63ec6f80a0067b3175f4fcd80f3debc20..ba50a8474ea5353febf835797f803b098731dae7 100644 (file)
@@ -204,7 +204,13 @@ public class PushCertificateParser {
        private final NonceGenerator nonceGenerator;
        private final List<ReceiveCommand> commands = new ArrayList<>();
 
-       PushCertificateParser(Repository into, SignedPushConfig cfg) {
+       /**
+        * @param into
+        *            destination repository for the push.
+        * @param cfg
+        *            configuration for signed push.
+        */
+       public PushCertificateParser(Repository into, SignedPushConfig cfg) {
                if (cfg != null) {
                        nonceSlopLimit = cfg.getCertNonceSlopLimit();
                        nonceGenerator = cfg.getNonceGenerator();