summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit.ssh
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2019-07-15 13:25:33 +0200
committerThomas Wolf <thomas.wolf@paranor.ch>2019-07-15 13:26:34 +0200
commit3a3c8de85c494c48265f2338d3d6a1a9d3d5ba34 (patch)
tree3ae0556fe72d2175830db4d8a1a9ae0af524dc20 /org.eclipse.jgit.junit.ssh
parent6e741bc1eba324e571c7a3f2f851dc490854176d (diff)
downloadjgit-3a3c8de85c494c48265f2338d3d6a1a9d3d5ba34.tar.gz
jgit-3a3c8de85c494c48265f2338d3d6a1a9d3d5ba34.zip
sshd: add missing javadoc in SshTestGitServer
Change-Id: Ie2e207eb05e0f6da8018153f8a5dd636e8f35f4c Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.junit.ssh')
-rw-r--r--org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java b/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java
index 7f155d4867..f54c279cb2 100644
--- a/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java
+++ b/org.eclipse.jgit.junit.ssh/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java
@@ -338,6 +338,16 @@ public class SshTestGitServer {
server.stop(true);
}
+ /**
+ * Sets the test user's public key on the server.
+ *
+ * @param key
+ * to set
+ * @throws IOException
+ * if the file cannot be read
+ * @throws GeneralSecurityException
+ * if the public key cannot be extracted from the file
+ */
public void setTestUserPublicKey(Path key)
throws IOException, GeneralSecurityException {
this.testKey = AuthorizedKeyEntry.readAuthorizedKeys(key).get(0)