01: /*
02: * Created on Jul 9, 2004
03: *
04: * This file is part of Thingamablog. ( http://thingamablog.sf.net )
05: *
06: * Copyright (c) 2004, Bob Tantlinger All Rights Reserved.
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License
10: * as published by the Free Software Foundation; either version 2
11: * of the License, or (at your option) any later version.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with this program; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21: * USA.
22: */
23: package net.sf.thingamablog.transport;
24:
25: /**
26: * Interface which specifies a Login prompt for logging into a transport
27: *
28: * @author Bob Tantlinger
29: *
30: */
31: public interface LoginPrompt {
32: /**
33: * Prompts the user for a password
34: *
35: * @param userName The username to display
36: */
37: public void promptUser(String userName, String serverName);
38:
39: /**
40: * Gets the password from the user
41: *
42: * @return The password
43: */
44: public String getPassword();
45:
46: /**
47: * Indicates if the user canceled the login
48: *
49: * @return true if cancelled, false otherwise
50: */
51: public boolean isLoginCancelled();
52: }
|