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:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.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 Modifier and Type Field Description private java.lang.Stringidprivate java.util.concurrent.atomic.AtomicBooleanopenprivate ConnectionServiceservice-
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()java.lang.StringgetId()booleanisOpen()
-
-
-
Field Detail
-
service
private final ConnectionService service
-
id
private final java.lang.String id
-
open
private final java.util.concurrent.atomic.AtomicBoolean open
-
-
Constructor Detail
-
AgentServerProxy
public AgentServerProxy(ConnectionService service) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
createClient
public SshAgent createClient() throws java.io.IOException
- Throws:
java.io.IOException
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceSshAgentServer- Returns:
- Agent server identifier
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfacejava.nio.channels.Channel
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.nio.channels.Channel- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-