01: /*
02: * This file is part of the QuickServer library
03: * Copyright (C) 2003-2005 QuickServer.org
04: *
05: * Use, modification, copying and distribution of this software is subject to
06: * the terms and conditions of the GNU Lesser General Public License.
07: * You should have received a copy of the GNU LGP License along with this
08: * library; if not, you can download a copy from <http://www.quickserver.org/>.
09: *
10: * For questions, suggestions, bug-reports, enhancement-requests etc.
11: * visit http://www.quickserver.org
12: *
13: */
14:
15: package echoserver;
16:
17: import org.quickserver.net.*;
18: import org.quickserver.net.server.*;
19:
20: import java.io.*;
21:
22: /**
23: * used by EchoAuthenticatorHandler
24: */
25: public class Data implements ClientData {
26: private String lastAsked = null;
27: private String username = null;
28: private byte password[] = null;
29: private String welcomeMsg = null;
30:
31: public void setLastAsked(String lastAsked) {
32: this .lastAsked = lastAsked;
33: }
34:
35: public String getLastAsked() {
36: return lastAsked;
37: }
38:
39: public void setUsername(String username) {
40: this .username = username;
41: }
42:
43: public String getUsername() {
44: return username;
45: }
46:
47: public void setPassword(byte[] password) {
48: this .password = password;
49: }
50:
51: public byte[] getPassword() {
52: return password;
53: }
54:
55: public void setWelcomeMsg(String welcomeMsg) {
56: this .welcomeMsg = welcomeMsg;
57: }
58:
59: public String getWelcomeMsg() {
60: return welcomeMsg;
61: }
62: }
|