public class SocksProxyServerFactory extends Object
SocksProxyServerFactory
is a factory class for socks server.Constructor and Description |
---|
SocksProxyServerFactory() |
Modifier and Type | Method and Description |
---|---|
static SocksProxyServer |
newNoAuthenticaionServer()
Creates a no authentication SOCKS5 server.
|
static SocksProxyServer |
newNoAuthenticaionServer(int port)
Creates a no authentication SOCKS5 server.
|
static SocksProxyServer |
newUsernamePasswordAutenticationServer(int port,
User... users) |
static SocksProxyServer |
newUsernamePasswordAutenticationServer(User... users)
Create a USERNAME/PASSWROD authentication SOCKS5 server.
|
public static SocksProxyServer newNoAuthenticaionServer()
SocksProxyServer
that supports SOCKS5 protocol.public static SocksProxyServer newNoAuthenticaionServer(int port)
port
- The port that SOCKS5 Server will listen.SocksProxyServer
that supports SOCKS5 protocol.public static SocksProxyServer newUsernamePasswordAutenticationServer(User... users)
users
- Users.SocksProxyServer
that supports SOCKS5 protocol.public static SocksProxyServer newUsernamePasswordAutenticationServer(int port, User... users)
Copyright © 2015. All rights reserved.