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.
  • Constructor Details

  • Method Details

    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface Channel
    • getExecutorService

      public org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()
    • getId

      public String getId()
      Specified by:
      getId in interface SshAgentServer
      Returns:
      Agent server identifier
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Channel
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • removeSocketFile

      protected File removeSocketFile(String socketPath, boolean debugEnabled) throws Exception
      Throws:
      Exception
    • signalEOS

      protected void signalEOS(AprLibrary libInstance, boolean debugEnabled) throws Exception
      Throws:
      Exception
    • deleteFile

      protected boolean deleteFile(File file, String msg, boolean debugEnabled)
    • toIOException

      public static IOException toIOException(int code)
      transform an APR error number in a more fancy exception
      Parameters:
      code - APR error code
      Returns:
      IOException with the exception details for the given APR error number