Package org.eclipse.jetty.client
Class Socks5.UsernamePasswordAuthenticationFactory
java.lang.Object
org.eclipse.jetty.client.Socks5.UsernamePasswordAuthenticationFactory
- All Implemented Interfaces:
Socks5.Authentication.Factory
- Enclosing class:
- Socks5
public static class Socks5.UsernamePasswordAuthenticationFactory
extends Object
implements Socks5.Authentication.Factory
The implementation of the USERNAME/PASSWORD
authentication method defined in
RFC 1929.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUsernamePasswordAuthenticationFactory
(String userName, String password) UsernamePasswordAuthenticationFactory
(String userName, String password, Charset charset) -
Method Summary
-
Field Details
-
METHOD
public static final byte METHOD- See Also:
-
VERSION
public static final byte VERSION- See Also:
-
-
Constructor Details
-
UsernamePasswordAuthenticationFactory
-
UsernamePasswordAuthenticationFactory
-
-
Method Details
-
getMethod
public byte getMethod()- Specified by:
getMethod
in interfaceSocks5.Authentication.Factory
- Returns:
- the authentication method defined by RFC 1928
-
newAuthentication
- Specified by:
newAuthentication
in interfaceSocks5.Authentication.Factory
- Returns:
- a new
Socks5.Authentication
-