public class SshServerEmbedded extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SshServerEmbedded.TestSshFile |
Constructor and Description |
---|
SshServerEmbedded(String wagonProtocol,
List<String> sshKeysResources,
boolean keyAuthz) |
Modifier and Type | Method and Description |
---|---|
org.apache.sshd.server.PasswordAuthenticator |
getPasswordAuthenticator() |
int |
getPort() |
int |
start() |
void |
stop() |
public SshServerEmbedded(String wagonProtocol, List<String> sshKeysResources, boolean keyAuthz)
wagonProtocol
- scp scpexesshKeysResources
- paths in the classlaoder with ssh keyspublic int start() throws IOException
IOException
public void stop() throws InterruptedException
InterruptedException
public int getPort()
public org.apache.sshd.server.PasswordAuthenticator getPasswordAuthenticator()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.