diff options
Diffstat (limited to 'src/net/sourceforge/jsocks/AuthenticationNone.java')
-rw-r--r-- | src/net/sourceforge/jsocks/AuthenticationNone.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/net/sourceforge/jsocks/AuthenticationNone.java b/src/net/sourceforge/jsocks/AuthenticationNone.java index 676b2da..f28193a 100644 --- a/src/net/sourceforge/jsocks/AuthenticationNone.java +++ b/src/net/sourceforge/jsocks/AuthenticationNone.java @@ -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()}; + } +} |