Interface Service

All Superinterfaces:
AutoCloseable, Channel, Closeable, org.apache.sshd.common.Closeable, org.apache.sshd.common.PropertyResolver, org.apache.sshd.common.session.SessionContextHolder, SessionHolder<Session>
All Known Subinterfaces:
ConnectionService
All Known Implementing Classes:
AbstractConnectionService, ClientConnectionService, ClientUserAuthService, ServerConnectionService, ServerUserAuthService

public interface Service extends SessionHolder<Session>, org.apache.sshd.common.PropertyResolver, org.apache.sshd.common.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.
Author:
Apache MINA SSHD Project
  • Field Summary

    Fields inherited from interface org.apache.sshd.common.PropertyResolver

    EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.apache.sshd.common.PropertyResolver
     
    void
    process(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer)
    Service the request.
    void
     

    Methods inherited from interface org.apache.sshd.common.Closeable

    addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener

    Methods inherited from interface org.apache.sshd.common.PropertyResolver

    getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getProperties, getString, getStringProperty, isEmpty

    Methods inherited from interface SessionHolder

    getSession, getSessionContext
  • Method Details

    • getParentPropertyResolver

      default org.apache.sshd.common.PropertyResolver getParentPropertyResolver()
      Specified by:
      getParentPropertyResolver in interface org.apache.sshd.common.PropertyResolver
    • start

      void start()
    • process

      void process(int cmd, org.apache.sshd.common.util.buffer.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