|
||||||||||
| 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(java.lang.String userName,
java.lang.String password)
Create an instance of UserPasswordAuthentication. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int METHOD_ID
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||