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