com.atlassian.bamboo.plugins.ssh
Class ProxyConnectionDataBuilderImpl

java.lang.Object
  extended by com.atlassian.bamboo.plugins.ssh.ProxyConnectionDataBuilderImpl
All Implemented Interfaces:
ProxyConnectionDataBuilder

public class ProxyConnectionDataBuilderImpl
extends java.lang.Object
implements ProxyConnectionDataBuilder


Constructor Summary
ProxyConnectionDataBuilderImpl()
           
 
Method Summary
 ProxyConnectionData build()
           
 ProxyConnectionDataBuilder withErrorReceiver(ProxyErrorReceiver receiver)
           
 ProxyConnectionDataBuilder withKeyFromFile(java.lang.String filePath, java.lang.String passphrase)
           
 ProxyConnectionDataBuilder withKeyFromProvider(org.apache.sshd.common.KeyPairProvider keyPairProvider)
           
 ProxyConnectionDataBuilder withKeyFromReader(java.io.Reader keyReader, java.lang.String passphrase)
           
 ProxyConnectionDataBuilder withKeyFromString(java.lang.String key, java.lang.String passphrase)
           
 ProxyConnectionDataBuilder withRemoteAddress(java.lang.String host, int port)
           
 ProxyConnectionDataBuilder withRemotePassword(java.lang.String password)
           
 ProxyConnectionDataBuilder withRemoteUserName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyConnectionDataBuilderImpl

public ProxyConnectionDataBuilderImpl()
Method Detail

withRemoteUserName

public ProxyConnectionDataBuilder withRemoteUserName(java.lang.String name)
Specified by:
withRemoteUserName in interface ProxyConnectionDataBuilder

withKeyFromFile

public ProxyConnectionDataBuilder withKeyFromFile(java.lang.String filePath,
                                                  @Nullable
                                                  java.lang.String passphrase)
                                           throws java.io.IOException
Specified by:
withKeyFromFile in interface ProxyConnectionDataBuilder
Throws:
java.io.IOException

withKeyFromString

public ProxyConnectionDataBuilder withKeyFromString(java.lang.String key,
                                                    @Nullable
                                                    java.lang.String passphrase)
                                             throws java.io.IOException
Specified by:
withKeyFromString in interface ProxyConnectionDataBuilder
Throws:
java.io.IOException

withKeyFromReader

public ProxyConnectionDataBuilder withKeyFromReader(java.io.Reader keyReader,
                                                    @Nullable
                                                    java.lang.String passphrase)
                                             throws java.io.IOException
Specified by:
withKeyFromReader in interface ProxyConnectionDataBuilder
Throws:
java.io.IOException

withKeyFromProvider

public ProxyConnectionDataBuilder withKeyFromProvider(org.apache.sshd.common.KeyPairProvider keyPairProvider)
                                               throws java.io.IOException
Specified by:
withKeyFromProvider in interface ProxyConnectionDataBuilder
Throws:
java.io.IOException

withRemoteAddress

public ProxyConnectionDataBuilder withRemoteAddress(java.lang.String host,
                                                    int port)
Specified by:
withRemoteAddress in interface ProxyConnectionDataBuilder

withErrorReceiver

public ProxyConnectionDataBuilder withErrorReceiver(ProxyErrorReceiver receiver)
Specified by:
withErrorReceiver in interface ProxyConnectionDataBuilder

withRemotePassword

public ProxyConnectionDataBuilder withRemotePassword(java.lang.String password)
Specified by:
withRemotePassword in interface ProxyConnectionDataBuilder

build

public ProxyConnectionData build()
                          throws ProxyException
Specified by:
build in interface ProxyConnectionDataBuilder
Throws:
ProxyException


Copyright © 2012 Atlassian. All Rights Reserved.