|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsocks.UserPasswordAuthentication
public class UserPasswordAuthentication
SOCKS5 User Password authentication scheme.
| Field Summary | |
|---|---|
static int |
METHOD_ID
SOCKS ID for User/Password authentication method |
| Constructor Summary | |
|---|---|
UserPasswordAuthentication(String userName,
String password)
Create an instance of UserPasswordAuthentication. |
|
| Method Summary | |
|---|---|
Object[] |
doSocksAuthentication(int methodId,
Socket proxySocket)
Does User/Password authentication as defined in rfc1929. |
String |
getPassword()
Get password |
String |
getUser()
Get the user name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int METHOD_ID
| Constructor Detail |
|---|
public UserPasswordAuthentication(String userName,
String password)
userName - User Name to send to SOCKS server.password - Password to send to SOCKS server.| Method Detail |
|---|
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.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||