aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2015-07-15 17:58:26 -0700
committerDave Borowitz <dborowitz@google.com>2015-07-15 18:09:42 -0700
commitc7c5fe718d6b1dee3f8537a97bc38b57542e9e53 (patch)
treeb1fc062febc3e11acafb7860648bae9a5def400c
parentd8b9c5145b0a728a520ff0cc02f6d20f333fa235 (diff)
downloadjgit-c7c5fe718d6b1dee3f8537a97bc38b57542e9e53.tar.gz
jgit-c7c5fe718d6b1dee3f8537a97bc38b57542e9e53.zip
BaseReceivePack: Add method to override the push cert
Change-Id: Id912f45c933c78a85b245fa7b6edebbeb40b009c
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java
index ca287f8bfb..776a9f695a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java
@@ -270,6 +270,20 @@ public abstract class BaseReceivePack {
}
/**
+ * Set the push certificate used to verify the pusher's identity.
+ * <p>
+ * Should only be called if reconstructing an instance without going through
+ * the normal {@link #recvCommands()} flow.
+ *
+ * @param cert
+ * the push certificate to set.
+ * @since 4.1
+ */
+ public void setPushCertificate(PushCertificate cert) {
+ pushCert = cert;
+ }
+
+ /**
* Create a new pack receive for an open repository.
*
* @param into