Class AuthenticationProtocolServer

  • All Implemented Interfaces:
    java.lang.Runnable

    public class AuthenticationProtocolServer
    extends AsyncService
    Version:
    $Revision: 1.11 $
    Author:
    $author$
    • Constructor Detail

      • AuthenticationProtocolServer

        public AuthenticationProtocolServer()
        Creates a new AuthenticationProtocolServer object.
    • Method Detail

      • onServiceAccept

        protected void onServiceAccept()
                                throws java.io.IOException
        Description copied from class: Service

        Called when the service is accepted by the remote server.

        Specified by:
        onServiceAccept in class Service
        Throws:
        java.io.IOException
      • onServiceInit

        protected void onServiceInit​(int startMode)
                              throws java.io.IOException
        Description copied from class: Service

        Called when the service is intialized.

        Specified by:
        onServiceInit in class Service
        Parameters:
        startMode -
        Throws:
        java.io.IOException
      • getSessionIdentifier

        public byte[] getSessionIdentifier()
        Returns:
      • sendMessage

        public void sendMessage​(SshMessage msg)
                         throws java.io.IOException
        Parameters:
        msg -
        Throws:
        java.io.IOException
      • readMessage

        public SshMessage readMessage()
                               throws java.io.IOException
        Returns:
        Throws:
        java.io.IOException
        SshException
      • registerMessage

        public void registerMessage​(int messageId,
                                    java.lang.Class cls)
        Parameters:
        messageId -
        cls -
      • getAsyncMessageFilter

        protected int[] getAsyncMessageFilter()
        Description copied from class: AsyncService

        Implement this method by returning the message ids of the asyncrounous messages your implementation wants to receive.

        Specified by:
        getAsyncMessageFilter in class AsyncService
        Returns:
      • acceptService

        public void acceptService​(Service service)
        Parameters:
        service -
      • onStop

        protected void onStop()
        Description copied from class: AsyncService

        The service thread calls this method when the thread is exiting.

        Specified by:
        onStop in class AsyncService