comparison src/net/sourceforge/jsocks/server/UserValidation.java @ 349:205ee2873330

update jsocks to 2011-03-19
author Carl Byington <carl@five-ten-sg.com>
date Fri, 01 Aug 2014 11:23:10 -0700
parents
children 72de889ecfe7
comparison
equal deleted inserted replaced
348:29076621bab0 349:205ee2873330
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 username,String password,
20 java.net.Socket connection);
21 }