Class AgentServerProxy

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, SshAgentServer

    public class AgentServerProxy
    extends 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 Detail

      • id

        private final java.lang.String id
      • open

        private final java.util.concurrent.atomic.AtomicBoolean open
    • Constructor Detail

      • AgentServerProxy

        public AgentServerProxy​(ConnectionService service)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • createClient

        public SshAgent createClient()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface SshAgentServer
        Returns:
        Agent server identifier
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface java.nio.channels.Channel
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.nio.channels.Channel
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException