1 14 15 package org.quickserver.net.server; 16 17 import java.io.*; 18 import java.net.SocketTimeoutException ; 19 import org.quickserver.net.AppException; 20 import org.quickserver.net.ConnectionLostException; 21 import org.quickserver.util.io.*; 22 23 33 public abstract class QuickAuthenticationHandler 34 implements ClientAuthenticationHandler { 35 36 public AuthStatus askAuthentication(ClientHandler handler) 37 throws IOException, AppException { 38 return null; 39 } 40 41 public AuthStatus handleAuthentication(ClientHandler handler, String data) 42 throws IOException, AppException { 43 if(true) throw new RuntimeException ("String/Byte mode not implemented!"); 44 return null; 45 } 46 47 public AuthStatus handleAuthentication(ClientHandler handler, Object data) 48 throws IOException, AppException { 49 if(true) throw new RuntimeException ("String/Byte mode not implemented!"); 50 return null; 51 } 52 53 public AuthStatus handleAuthentication(ClientHandler handler, byte data[]) 54 throws IOException { 55 if(true) throw new RuntimeException ("String/Byte mode not implemented!"); 56 return null; 57 } 58 } | Popular Tags |