Class AgentServer

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.agent.unix.AgentServer
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.sshd.common.util.threads.ExecutorServiceCarrier

public class AgentServer extends org.apache.sshd.common.util.logging.AbstractLoggingBean implements Closeable, org.apache.sshd.common.util.threads.ExecutorServiceCarrier
A server for an SSH Agent
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
  • Field Summary

    Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AgentServer(SshAgent agent, org.apache.sshd.common.util.threads.CloseableExecutorService executor)
     
    AgentServer(org.apache.sshd.common.util.threads.CloseableExecutorService executor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    org.apache.sshd.common.util.threads.CloseableExecutorService
     
     

    Methods 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AgentServer

      public AgentServer()
    • AgentServer

      public AgentServer(org.apache.sshd.common.util.threads.CloseableExecutorService executor)
    • AgentServer

      public AgentServer(SshAgent agent, org.apache.sshd.common.util.threads.CloseableExecutorService executor)
  • Method Details

    • getAgent

      public SshAgent getAgent()
    • getExecutorService

      public org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()
      Specified by:
      getExecutorService in interface org.apache.sshd.common.util.threads.ExecutorServiceCarrier
    • start

      public String start() throws Exception
      Throws:
      Exception
    • close

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