Interface Service

All Superinterfaces:
AutoCloseable, Channel, Closeable, Closeable, PropertyResolver, SessionContextHolder, SessionHolder<Session>
All Known Subinterfaces:
ConnectionService
All Known Implementing Classes:
AbstractConnectionService, ClientConnectionService, ClientUserAuthService, ServerConnectionService, ServerUserAuthService

public interface Service extends SessionHolder<Session>, PropertyResolver, Closeable
See RFC 4253 [SSH-TRANS] and the SSH_MSG_SERVICE_REQUEST packet. Examples include "ssh-userauth" and "ssh-connection" but developers are also free to implement their own custom service.
  • Method Details

    • getParentPropertyResolver

      default PropertyResolver getParentPropertyResolver()
      Specified by:
      getParentPropertyResolver in interface PropertyResolver
      Returns:
      The parent resolver that can be used to query for missing properties - null if no parent
    • start

      void start()
    • process

      void process(int cmd, Buffer buffer) throws Exception
      Service the request.
      Parameters:
      cmd - The incoming command type
      buffer - The Buffer containing optional command parameters
      Throws:
      Exception - If failed to process the command