Back to project page Orlib.
The source code is released under:
GNU Lesser General Public License
If you think the Android project Orlib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.sourceforge.jsocks.socks.server; //from w w w.j av a2 s .c om /** Interface which provides for user validation, based on user name password and where it connects from. */ public interface UserValidation{ /** Implementations of this interface are expected to use some or all of the information provided plus any information they can extract from other sources to decide wether given user should be allowed access to SOCKS server, or whatever you use it for. @return true to indicate user is valid, false otherwise. @param username User whom implementation should validate. @param password Password this user provided. @param connection Socket which user used to connect to the server. */ boolean isUserValid(String username,String password, java.net.Socket connection); }