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
A server for an SSH Agent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SshAgent
private Future
<?> private String
private long
private long
private final CloseableExecutorService
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
ConstructorsConstructorDescriptionAgentServer
(SshAgent agent, CloseableExecutorService executor) AgentServer
(CloseableExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getAgent()
start()
private static void
throwException
(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:
getExecutorService
in interfaceExecutorServiceCarrier
- Returns:
- The
CloseableExecutorService
to use
-
start
- Throws:
Exception
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-