Mercurial > 510Connectbot
comparison app/src/main/java/net/sourceforge/jsocks/server/UserValidation.java @ 438:d29cce60f393
migrate from Eclipse to Android Studio
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Dec 2015 11:23:55 -0800 |
parents | src/net/sourceforge/jsocks/server/UserValidation.java@72de889ecfe7 |
children |
comparison
equal
deleted
inserted
replaced
437:208b31032318 | 438:d29cce60f393 |
---|---|
1 package net.sourceforge.jsocks.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 } |