org.apache.maven.wagon.providers.ssh
Class SshServerEmbedded

java.lang.Object
  extended by org.apache.maven.wagon.providers.ssh.SshServerEmbedded

public class SshServerEmbedded
extends Object

Author:
Olivier Lamy

Nested Class Summary
static class SshServerEmbedded.TestSshFile
           
 
Field Summary
 TestPasswordAuthenticator passwordAuthenticator
           
 TestPublickeyAuthenticator publickeyAuthenticator
           
 
Constructor Summary
SshServerEmbedded(String wagonProtocol, List<String> sshKeysResources, boolean keyAuthz)
           
 
Method Summary
 int getPort()
           
 int start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publickeyAuthenticator

public TestPublickeyAuthenticator publickeyAuthenticator

passwordAuthenticator

public TestPasswordAuthenticator passwordAuthenticator
Constructor Detail

SshServerEmbedded

public SshServerEmbedded(String wagonProtocol,
                         List<String> sshKeysResources,
                         boolean keyAuthz)
Parameters:
wagonProtocol - scp scpexe
sshKeysResources - paths in the classlaoder with ssh keys
Method Detail

start

public int start()
          throws IOException
Returns:
random port used
Throws:
IOException

stop

public void stop()
          throws InterruptedException
Throws:
InterruptedException

getPort

public int getPort()


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.