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; /*from w w w. ja v a 2 s . c o m*/ /** SOCKS5 none authentication. Dummy class does almost nothing. */ public class AuthenticationNone implements Authentication{ public Object[] doSocksAuthentication(int methodId, java.net.Socket proxySocket) throws java.io.IOException{ if(methodId!=0) return null; return new Object[] { proxySocket.getInputStream(), proxySocket.getOutputStream()}; } }