Package org.apache.sshd.agent.local
Class AgentServerProxy
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.agent.local.AgentServerProxy
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,SshAgentServer
public class AgentServerProxy extends AbstractLoggingBean implements SshAgentServer
The server side fake agent, acting as an agent, but actually forwarding the requests to the auth channel on the client side.
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description AgentServerProxy(ConnectionService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SshAgent
createClient()
String
getId()
boolean
isOpen()
-
-
-
Constructor Detail
-
AgentServerProxy
public AgentServerProxy(ConnectionService service) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createClient
public SshAgent createClient() throws IOException
- Throws:
IOException
-
getId
public String getId()
- Specified by:
getId
in interfaceSshAgentServer
- Returns:
- Agent server identifier
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-