Mercurial > 510Connectbot
comparison 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 |
comparison
equal
deleted
inserted
replaced
348:29076621bab0 | 349:205ee2873330 |
---|---|
1 package net.sourceforge.jsocks; | 1 package net.sourceforge.jsocks; |
2 | 2 |
3 /** | 3 /** |
4 SOCKS5 none authentication. Dummy class does almost nothing. | 4 SOCKS5 none authentication. Dummy class does almost nothing. |
5 */ | 5 */ |
6 public class AuthenticationNone implements Authentication { | 6 public class AuthenticationNone implements Authentication{ |
7 | 7 |
8 public Object[] doSocksAuthentication(int methodId, | 8 public Object[] doSocksAuthentication(int methodId, |
9 java.net.Socket proxySocket) | 9 java.net.Socket proxySocket) |
10 throws java.io.IOException { | 10 throws java.io.IOException{ |
11 if (methodId != 0) return null; | |
12 | 11 |
13 return new Object[] { proxySocket.getInputStream(), | 12 if(methodId!=0) return null; |
14 proxySocket.getOutputStream() | 13 |
15 }; | 14 return new Object[] { proxySocket.getInputStream(), |
16 } | 15 proxySocket.getOutputStream()}; |
16 } | |
17 } | 17 } |