Mercurial > 510Connectbot
diff src/net/sourceforge/jsocks/AuthenticationNone.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 | 0ce5cc452d02 |
children |
line wrap: on
line diff
--- a/src/net/sourceforge/jsocks/AuthenticationNone.java Fri Aug 01 10:25:44 2014 -0700 +++ b/src/net/sourceforge/jsocks/AuthenticationNone.java Fri Aug 01 11:23:10 2014 -0700 @@ -1,17 +1,17 @@ -package net.sourceforge.jsocks; - -/** - 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() - }; - } -} +package net.sourceforge.jsocks; + +/** + 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()}; + } +}