KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > socks > server > UserValidation


1 package socks.server;
2
3 /**
4   Interface which provides for user validation, based on user name
5   password and where it connects from.
6 */

7 public interface UserValidation{
8     /**
9      Implementations of this interface are expected to use some or all
10      of the information provided plus any information they can extract
11      from other sources to decide wether given user should be allowed
12      access to SOCKS server, or whatever you use it for.
13
14      @return true to indicate user is valid, false otherwise.
15      @param username User whom implementation should validate.
16      @param password Password this user provided.
17      @param connection Socket which user used to connect to the server.
18     */

19     boolean isUserValid(String JavaDoc username,String JavaDoc password,
20                         java.net.Socket JavaDoc connection);
21 }
22
Popular Tags