sshd: add missing javadoc in SshTestGitServer
Change-Id: Ie2e207eb05e0f6da8018153f8a5dd636e8f35f4c Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
parent
6e741bc1eb
commit
3a3c8de85c
|
@ -338,6 +338,16 @@ public void stop() throws IOException {
|
||||||
server.stop(true);
|
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)
|
public void setTestUserPublicKey(Path key)
|
||||||
throws IOException, GeneralSecurityException {
|
throws IOException, GeneralSecurityException {
|
||||||
this.testKey = AuthorizedKeyEntry.readAuthorizedKeys(key).get(0)
|
this.testKey = AuthorizedKeyEntry.readAuthorizedKeys(key).get(0)
|
||||||
|
|
Loading…
Reference in New Issue