KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quickserver > net > server > QuickAuthenticationHandler


1 /*
2  * This file is part of the QuickServer library
3  * Copyright (C) 2003-2005 QuickServer.org
4  *
5  * Use, modification, copying and distribution of this software is subject to
6  * the terms and conditions of the GNU Lesser General Public License.
7  * You should have received a copy of the GNU LGP License along with this
8  * library; if not, you can download a copy from <http://www.quickserver.org/>.
9  *
10  * For questions, suggestions, bug-reports, enhancement-requests etc.
11  * visit http://www.quickserver.org
12  *
13  */

14
15 package org.quickserver.net.server;
16
17 import java.io.*;
18 import java.net.SocketTimeoutException JavaDoc;
19 import org.quickserver.net.AppException;
20 import org.quickserver.net.ConnectionLostException;
21 import org.quickserver.util.io.*;
22
23 /**
24  * This class is used to authenticate a client when
25  * it connects to QuickServer. Only single instance of this class
26  * will be used per QuickServer to handle all authentication.
27  * Should have a default constructor.
28  *
29  </pre></BLOCKQUOTE></code></p>
30  * @author Akshathkumar Shetty
31  * @since 1.4.6
32  */

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 JavaDoc data)
42             throws IOException, AppException {
43         if(true) throw new RuntimeException JavaDoc("String/Byte mode not implemented!");
44         return null;
45     }
46
47     public AuthStatus handleAuthentication(ClientHandler handler, Object JavaDoc data)
48             throws IOException, AppException {
49         if(true) throw new RuntimeException JavaDoc("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 JavaDoc("String/Byte mode not implemented!");
56         return null;
57     }
58 }
Popular Tags