Class AgentServer
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.agent.unix.AgentServer
- All Implemented Interfaces:
Closeable, AutoCloseable, ExecutorServiceCarrier
A server for an SSH Agent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SshAgentprivate Future<?> private Stringprivate longprivate longprivate final CloseableExecutorServiceFields inherited from class AbstractLoggingBean
log -
Constructor Summary
ConstructorsConstructorDescriptionAgentServer(SshAgent agent, CloseableExecutorService executor) AgentServer(CloseableExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getAgent()start()private static voidthrowException(int code) transform an APR error number in a more fancy exception
-
Field Details
-
agent
-
service
-
agentThread
-
authSocket
-
pool
private long pool -
handle
private long handle
-
-
Constructor Details
-
AgentServer
public AgentServer() -
AgentServer
-
AgentServer
-
-
Method Details
-
getAgent
-
getExecutorService
- Specified by:
getExecutorServicein interfaceExecutorServiceCarrier- Returns:
- The
CloseableExecutorServiceto use
-
start
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
throwException
transform an APR error number in a more fancy exception- Parameters:
code- APR error code- Throws:
IOException- the produced exception for the given APR error number
-