socks.server
Class UserPasswordAuthenticator

java.lang.Object
  |
  +--socks.server.ServerAuthenticatorNone
        |
        +--socks.server.UserPasswordAuthenticator

public class UserPasswordAuthenticator
extends ServerAuthenticatorNone

This class implements SOCKS5 User/Password authentication scheme as defined in rfc1929,the server side of it.


Constructor Summary
UserPasswordAuthenticator(UserValidation validator)
          Construct a new UserPasswordAuthentication object, with given UserVlaidation scheme.
 
Method Summary
 ServerAuthenticator startSession(java.net.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 socks.server.ServerAuthenticatorNone
checkRequest, checkRequest, endSession, getInputStream, getOutputStream, getUdpEncapsulation, selectSocks5Authentication
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPasswordAuthenticator

public UserPasswordAuthenticator(UserValidation validator)
Construct a new UserPasswordAuthentication object, with given UserVlaidation scheme.
Parameters:
v - UserValidation to use for validating users.
Method Detail

startSession

public ServerAuthenticator startSession(java.net.Socket s)
                                 throws java.io.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.
Overrides:
startSession in class ServerAuthenticatorNone
Tags copied from interface: ServerAuthenticator
Parameters:
s - Accepted Socket.
Returns:
An instance of ServerAuthenticator to be used for this connection or null