public class AgentServerProxy extends AbstractLoggingBean implements SshAgentServer
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id |
private java.util.concurrent.atomic.AtomicBoolean |
open |
private ConnectionService |
service |
log
CHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT, DEFAULT_PROXY_CHANNEL_TYPE, PROXY_CHANNEL_TYPE
Constructor and Description |
---|
AgentServerProxy(ConnectionService service) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SshAgent |
createClient() |
java.lang.String |
getId() |
boolean |
isOpen() |
getSimplifiedLogger
private final ConnectionService service
private final java.lang.String id
private final java.util.concurrent.atomic.AtomicBoolean open
public AgentServerProxy(ConnectionService service) throws java.io.IOException
java.io.IOException
public SshAgent createClient() throws java.io.IOException
java.io.IOException
public java.lang.String getId()
getId
in interface SshAgentServer
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException