blob: 676b2da89639268433693cd7e35068b531da8c5c (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()};
   }
}
 |