Class SftpVersionSelector.NamedVersionSelector

    • Method Detail

      • selectVersion

        public int selectVersion​(ClientSession session,
                                 int current,
                                 List<Integer> available)
        Specified by:
        selectVersion in interface SftpVersionSelector
        Parameters:
        session - The ClientSession through which the SFTP connection is made
        current - The current version negotiated with the server
        available - Extra versions available - may be empty and/or contain only the current one
        Returns:
        The new requested version - if same as current, then nothing is done