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.String
id
private java.util.concurrent.atomic.AtomicBoolean
open
private ConnectionService
service
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.agent.SshAgentServer
CHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT, DEFAULT_PROXY_CHANNEL_TYPE, PROXY_CHANNEL_TYPE
-
-
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()
java.lang.String
getId()
boolean
isOpen()
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-
-
-
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:
getId
in interfaceSshAgentServer
- Returns:
- Agent server identifier
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfacejava.nio.channels.Channel
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.nio.channels.Channel
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-