public class UserPasswordAuthentication extends Object implements Authentication
| Modifier and Type | Field and Description |
|---|---|
static int |
METHOD_ID
SOCKS ID for User/Password authentication method
|
| Constructor and Description |
|---|
UserPasswordAuthentication(String userName,
String password)
Create an instance of UserPasswordAuthentication.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
doSocksAuthentication(int methodId,
Socket proxySocket)
Does User/Password authentication as defined in rfc1929.
|
String |
getPassword()
Get password
|
String |
getUser()
Get the user name.
|
public static final int METHOD_ID
public String getUser()
public String getPassword()
public Object[] doSocksAuthentication(int methodId, Socket proxySocket) throws IOException
doSocksAuthentication in interface AuthenticationmethodId - Authentication method selected by the server.proxySocket - Socket used to conect to the proxy.IOExceptionCopyright © 2025. All rights reserved.