blob: f28193a9f5dd5669fcd6ca857d71f138e37a2d5e (
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()};
}
}
|