/** * Creates a no authentication SOCKS5 server. The server will listen at port 1080. * * @return The instance of {@link SocksProxyServer} that supports SOCKS5 protocol. */ public static SocksProxyServer newNoAuthenticationServer() { return newNoAuthenticationServer(DEFAULT_PORT); }
/** * Create a USERNAME/PASSWORD authentication SOCKS5 server. * * @param users Users. * @return The instance of {@link SocksProxyServer} that supports SOCKS5 protocol. */ public static SocksProxyServer newUsernamePasswordAuthenticationServer(User... users) { return newUsernamePasswordAuthenticationServer(DEFAULT_PORT, users); }
/** * Create a USERNAME/PASSWORD authentication SOCKS5 server. * * @param users Users. * @return The instance of {@link SocksProxyServer} that supports SOCKS5 protocol. */ public static SocksProxyServer newUsernamePasswordAuthenticationServer(User... users) { return newUsernamePasswordAuthenticationServer(DEFAULT_PORT, users); }
/** * Creates a no authentication SOCKS5 server. The server will listen at port 1080. * * @return The instance of {@link SocksProxyServer} that supports SOCKS5 protocol. */ public static SocksProxyServer newNoAuthenticationServer() { return newNoAuthenticationServer(DEFAULT_PORT); }