socks.server
Class UserPasswordAuthenticator
java.lang.Object
socks.server.ServerAuthenticatorNone
socks.server.UserPasswordAuthenticator
- All Implemented Interfaces:
- ServerAuthenticator
public class UserPasswordAuthenticator
- extends ServerAuthenticatorNone
This class implements SOCKS5 User/Password authentication scheme as
defined in rfc1929,the server side of it.
|
Method Summary |
ServerAuthenticator |
startSession(Socket s)
Grants access to everyone.Removes authentication related bytes from
the stream, when a SOCKS5 connection is being made, selects an
authentication NONE. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserPasswordAuthenticator
public UserPasswordAuthenticator(UserValidation validator)
- Construct a new UserPasswordAuthentication object, with given
UserVlaidation scheme.
- Parameters:
v - UserValidation to use for validating users.
startSession
public ServerAuthenticator startSession(Socket s)
throws IOException
- Description copied from class:
ServerAuthenticatorNone
- Grants access to everyone.Removes authentication related bytes from
the stream, when a SOCKS5 connection is being made, selects an
authentication NONE.
- Specified by:
startSession in interface ServerAuthenticator- Overrides:
startSession in class ServerAuthenticatorNone
- Parameters:
s - Accepted Socket.
- Returns:
- An instance of ServerAuthenticator to be used for this connection
or null
- Throws:
IOException
Copyright © 2012. All Rights Reserved.