org.apache.sshd.agent.unix
Class AgentClient

java.lang.Object
  extended by org.apache.sshd.agent.common.AbstractAgentProxy
      extended by org.apache.sshd.agent.unix.AgentClient
All Implemented Interfaces:
java.lang.Runnable, SshAgent

public class AgentClient
extends AbstractAgentProxy
implements java.lang.Runnable

A client for a remote SSH agent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.sshd.agent.SshAgent
SshAgent.Pair<U,V>
 
Field Summary
 
Fields inherited from interface org.apache.sshd.agent.SshAgent
SSH_AUTHSOCKET_ENV_NAME
 
Constructor Summary
AgentClient(java.lang.String authSocket)
           
 
Method Summary
 void close()
           
protected  void messageReceived(Buffer buffer)
           
protected  Buffer request(Buffer buffer)
           
 void run()
           
 
Methods inherited from class org.apache.sshd.agent.common.AbstractAgentProxy
addIdentity, createBuffer, getIdentities, prepare, removeAllIdentities, removeIdentity, sign
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentClient

public AgentClient(java.lang.String authSocket)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

messageReceived

protected void messageReceived(Buffer buffer)
                        throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()
Specified by:
close in interface SshAgent
Overrides:
close in class AbstractAgentProxy

request

protected Buffer request(Buffer buffer)
                  throws java.io.IOException
Specified by:
request in class AbstractAgentProxy
Throws:
java.io.IOException


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.