/** * Configures authentication order. * * @param opts The FileSystem options. * @param preferredAuthentications The authentication order. * @since 2.0 */ public void setPreferredAuthentications(final FileSystemOptions opts, final String preferredAuthentications) { this.setParam(opts, PREFERRED_AUTHENTICATIONS, preferredAuthentications); }
/** * Sets the proxy username to use for the SFTP connection. * * @param opts The FileSystem options. * @param proxyOptions the options * @see #getProxyOptions * @since 2.1 */ public void setProxyOptions(final FileSystemOptions opts, final FileSystemOptions proxyOptions) { this.setParam(opts, PROXY_OPTIONS, proxyOptions); }
/** * Sets the file name encoding. * * @param opts The FileSystem options. * @param fileNameEncoding The name of the encoding to use for file names. */ public void setFileNameEncoding(final FileSystemOptions opts, final String fileNameEncoding) { this.setParam(opts, ENCODING, fileNameEncoding); }
/** * Sets the proxy to use for the SFTP connection. * * You MUST also set the proxy port to use the proxy. * * @param opts The FileSystem options. * @param proxyHost the host * @see #setProxyPort */ public void setProxyHost(final FileSystemOptions opts, final String proxyHost) { this.setParam(opts, PROXY_HOST, proxyHost); }
/** * Sets the proxy username to use for the SFTP connection. * * @param opts The FileSystem options. * @param proxyOptions the options * @see #getProxyOptions * @since 2.1 */ public void setProxyOptions(final FileSystemOptions opts, final FileSystemOptions proxyOptions) { this.setParam(opts, PROXY_OPTIONS, proxyOptions); }
public void setHomeFolderOverride(FileSystemOptions opts, String value) { setParam(opts, HOME_FOLDER_OVERRIDE, value); } // [IntelliJ] override home folder --------------
/** * Sets the identity info (your private key files). * * @param opts The FileSystem options. * @param identites An array of identity info. * @throws FileSystemException if an error occurs. * @since 2.1 */ public void setIdentityInfo(final FileSystemOptions opts, final IdentityInfo... identites) throws FileSystemException { this.setParam(opts, IDENTITIES, identites); }
/** * Sets the proxy to use for the SFTP connection. * * You MUST also set the proxy port to use the proxy. * * @param opts The FileSystem options. * @param proxyHost the host * @see #setProxyPort */ public void setProxyHost(final FileSystemOptions opts, final String proxyHost) { this.setParam(opts, PROXY_HOST, proxyHost); }
/** * Sets the proxy password to use for the SFTP connection. * * @param opts The FileSystem options. * @param proxyPassword the username used to connect to the proxy * @see #getProxyPassword * @since 2.1 */ public void setProxyPassword(final FileSystemOptions opts, final String proxyPassword) { this.setParam(opts, PROXY_PASSWORD, proxyPassword); }
/** * Sets the proxy username to use for the SFTP connection. * * @param opts The FileSystem options. * @param proxyUser the username used to connect to the proxy * @see #getProxyUser * @since 2.1 */ public void setProxyUser(final FileSystemOptions opts, final String proxyUser) { this.setParam(opts, PROXY_USER, proxyUser); }
/** * Sets the file name encoding. * * @param opts The FileSystem options. * @param fileNameEncoding The name of the encoding to use for file names. */ public void setFileNameEncoding(final FileSystemOptions opts, final String fileNameEncoding) { this.setParam(opts, ENCODING, fileNameEncoding); }
/** * Sets the timeout value on Jsch session. * * @param opts The FileSystem options. * @param timeout The timeout in milliseconds. */ public void setTimeout(final FileSystemOptions opts, final Integer timeout) { this.setParam(opts, TIMEOUT, timeout); }
/** * Sets the known_hosts file. e.g. {@code /home/user/.ssh/known_hosts2}. * <p> * We use {@link java.io.File} because JSch cannot deal with VFS FileObjects. * * @param opts The FileSystem options. * @param knownHosts The known hosts file. * @throws FileSystemException if an error occurs. */ public void setKnownHosts(final FileSystemOptions opts, final File knownHosts) throws FileSystemException { this.setParam(opts, KNOWN_HOSTS, knownHosts); }
/** * Sets the proxy username to use for the SFTP connection. * * @param opts The FileSystem options. * @param proxyCommand the port * @see #getProxyOptions * @since 2.1 */ public void setProxyCommand(final FileSystemOptions opts, final String proxyCommand) { this.setParam(opts, PROXY_COMMAND, proxyCommand); }
/** * Sets the whether to use the user directory as root (do not change to file system root). * * @param opts The FileSystem options. * @param userDirIsRoot true if the user directory is the root directory. */ public void setUserDirIsRoot(final FileSystemOptions opts, final boolean userDirIsRoot) { this.setParam(opts, USER_DIR_IS_ROOT, userDirIsRoot ? Boolean.TRUE : Boolean.FALSE); }
/** * Sets the whether to use the user directory as root (do not change to file system root). * * @param opts The FileSystem options. * @param userDirIsRoot true if the user directory is the root directory. */ public void setUserDirIsRoot(final FileSystemOptions opts, final boolean userDirIsRoot) { this.setParam(opts, USER_DIR_IS_ROOT, userDirIsRoot ? Boolean.TRUE : Boolean.FALSE); }
/** * Sets the proxy username to use for the SFTP connection. * * @param opts The FileSystem options. * @param proxyCommand the port * @see #getProxyOptions * @since 2.1 */ public void setProxyCommand(final FileSystemOptions opts, final String proxyCommand) { this.setParam(opts, PROXY_COMMAND, proxyCommand); }
/** * Sets the Jsch UserInfo class to use. * * @param opts The FileSystem options. * @param info User information. */ public void setUserInfo(final FileSystemOptions opts, final UserInfo info) { this.setParam(opts, UserInfo.class.getName(), info); } }
/** * Sets the proxy port to use for the SFTP connection. * <p> * You MUST also set the proxy host to use the proxy. * * @param opts The FileSystem options. * @param proxyPort the port * @see #setProxyHost */ public void setProxyPort(final FileSystemOptions opts, final int proxyPort) { this.setParam(opts, PROXY_PORT, Integer.valueOf(proxyPort)); }
/** * Sets the Jsch UserInfo class to use. * * @param opts * The FileSystem options. * @param info * User information. */ public void setUserInfo(final FileSystemOptions opts, final UserInfo info) { this.setParam(opts, UserInfo.class.getName(), info); }