Package org.apache.sshd.agent.unix
Class AgentServer
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.agent.unix.AgentServer
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ExecutorServiceCarrier
public class AgentServer extends AbstractLoggingBean implements Closeable, ExecutorServiceCarrier
A server for an SSH Agent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAgentServer.SshAgentSession
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description AgentServer()AgentServer(SshAgent agent, CloseableExecutorService executor)AgentServer(CloseableExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()SshAgentgetAgent()CloseableExecutorServicegetExecutorService()Stringstart()
-
-
-
Constructor Detail
-
AgentServer
public AgentServer()
-
AgentServer
public AgentServer(CloseableExecutorService executor)
-
AgentServer
public AgentServer(SshAgent agent, CloseableExecutorService executor)
-
-
Method Detail
-
getAgent
public SshAgent getAgent()
-
getExecutorService
public CloseableExecutorService getExecutorService()
- Specified by:
getExecutorServicein interfaceExecutorServiceCarrier
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-