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 voidclose()SshAgentcreateClient()StringgetId()booleanisOpen()
-
-
-
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:
getIdin interfaceSshAgentServer- Returns:
- Agent server identifier
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-