Class AuthenticationProtocolClient


  • public class AuthenticationProtocolClient
    extends Service
    Version:
    $Revision: 1.27 $
    Author:
    $author$
    • Constructor Detail

      • AuthenticationProtocolClient

        public AuthenticationProtocolClient()
        Creates a new AuthenticationProtocolClient 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
      • onStart

        protected void onStart()
        Description copied from class: Service

        Called when the service is started.

        Specified by:
        onStart in class Service
      • 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
        java.io.IOException
      • onServiceRequest

        protected void onServiceRequest()
                                 throws java.io.IOException
        Specified by:
        onServiceRequest in class Service
        Throws:
        java.io.IOException
        java.io.IOException
      • getAvailableAuths

        public java.util.List getAvailableAuths​(java.lang.String username,
                                                java.lang.String serviceName)
                                         throws java.io.IOException
        Parameters:
        username -
        serviceName -
        Returns:
        Throws:
        java.io.IOException
        SshException
      • authenticate

        public int authenticate​(SshAuthenticationClient auth,
                                Service serviceToStart)
                         throws java.io.IOException
        Parameters:
        auth -
        serviceToStart -
        Returns:
        Throws:
        java.io.IOException
        SshException
      • sendMessage

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

        public byte[] getSessionIdentifier()
        Returns:
      • registerMessage

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

        public java.lang.String getBannerMessage​(int timeout)
                                          throws java.io.IOException
        Parameters:
        timeout -
        Returns:
        Throws:
        java.io.IOException
        SshException