com.cloudbees.jenkins.plugins.sshagent
Interface SSHAgentBuildWrapper.RemoteAgent

All Known Implementing Classes:
SSHAgentBuildWrapper.RemoteAgentImpl
Enclosing class:
SSHAgentBuildWrapper

public static interface SSHAgentBuildWrapper.RemoteAgent

Need an interface in order to export the object from the channel.


Method Summary
 void addIdentity(java.lang.String privateKey, java.lang.String passphrase, java.lang.String comment)
          Adds the provided identity to the agent.
 java.lang.String getSocket()
          Returns the value that the environment variable should be set to.
 void stop()
          Stops the agent.
 

Method Detail

getSocket

java.lang.String getSocket()
Returns the value that the environment variable should be set to.

Returns:

addIdentity

void addIdentity(java.lang.String privateKey,
                 java.lang.String passphrase,
                 java.lang.String comment)
                 throws java.io.IOException
Adds the provided identity to the agent.

Parameters:
privateKey - the private key.
passphrase - the passphrase or null.
comment - the comment to give to the key.
Throws:
java.io.IOException - if something went wrong.

stop

void stop()
Stops the agent.



Copyright © 2004-2012. All Rights Reserved.