Class AgentServerProxy
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.agent.unix.AgentServerProxy
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, SshAgentServer
public class AgentServerProxy
extends org.apache.sshd.common.util.logging.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 inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
ConstructorsConstructorDescriptionAgentServerProxy(ConnectionService service) AgentServerProxy(ConnectionService service, org.apache.sshd.common.util.threads.CloseableExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected booleandeleteFile(File file, String msg, boolean debugEnabled) org.apache.sshd.common.util.threads.CloseableExecutorServicegetId()booleanisOpen()protected FileremoveSocketFile(String socketPath, boolean debugEnabled) protected voidsignalEOS(AprLibrary libInstance, boolean debugEnabled) static IOExceptiontoIOException(int code) transform an APR error number in a more fancy exceptionMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Constructor Details
-
AgentServerProxy
- Throws:
IOException
-
AgentServerProxy
public AgentServerProxy(ConnectionService service, org.apache.sshd.common.util.threads.CloseableExecutorService executor) throws IOException - Throws:
IOException
-
-
Method Details
-
isOpen
-
getExecutorService
public org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService() -
getId
- Specified by:
getIdin interfaceSshAgentServer- Returns:
- Agent server identifier
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
removeSocketFile
-
signalEOS
- Throws:
Exception
-
deleteFile
-
toIOException
transform an APR error number in a more fancy exception- Parameters:
code- APR error code- Returns:
IOExceptionwith the exception details for the given APR error number
-