Class SftpVersionSelector.NamedVersionSelector

    • Method Detail

      • selectVersion

        public int selectVersion​(ClientSession session,
                                 boolean initial,
                                 int current,
                                 List<Integer> available)
        Specified by:
        selectVersion in interface SftpVersionSelector
        Parameters:
        session - The ClientSession through which the SFTP connection is made
        initial - If true then this is the initial version sent via SSH_FXP_INIT otherwise it is a re-negotiation.
        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object